Skip to content

Commit 537d965

Browse files
Improve generic 'Method not found' message for better debuggability
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2bb7f47 commit 537d965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/shared/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ export abstract class Protocol<SendRequestT extends Request, SendNotificationT e
689689
id: request.id,
690690
error: {
691691
code: ErrorCode.MethodNotFound,
692-
message: 'Method not found'
692+
message: `Method '${request.method}' not found`
693693
}
694694
};
695695

0 commit comments

Comments
 (0)