Skip to content

Commit 4c9291b

Browse files
committed
Improve generic 'Method not found' message for better debuggability
1 parent 058b87c commit 4c9291b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export abstract class Protocol<
380380
id: request.id,
381381
error: {
382382
code: ErrorCode.MethodNotFound,
383-
message: "Method not found",
383+
message: `Method '${request.method}' not found`,
384384
},
385385
})
386386
.catch((error) =>

0 commit comments

Comments
 (0)