We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d39ca6 commit a254ab7Copy full SHA for a254ab7
src/shared/protocol.ts
@@ -180,8 +180,8 @@ export class Protocol<
180
jsonrpc: "2.0",
181
id: request.id,
182
error: {
183
- code: error["code"]
184
- ? Math.floor(Number(error["code"]))
+ code: Number.isSafeInteger(error["code"])
+ ? error["code"]
185
: ErrorCode.InternalError,
186
message: error.message ?? "Internal error",
187
},
0 commit comments