Update comment for jsonrpcReservedErrorRangeEnd#1315
Update comment for jsonrpcReservedErrorRangeEnd#1315dbaeumer merged 1 commit intomicrosoft:gh-pagesfrom
Conversation
The comment states that it is the start of the range, but the variable name states it is the end. The variable name seems to be correct, so update the comment.
export const jsonrpcReservedErrorRangeStart: integer = -32099;export const jsonrpcReservedErrorRangeEnd = -32000;Looks like we have a bigger problem where the "end" is |
|
@rcjsuen The The JSON-RPC 2.0 spec isn't even consistent on this for their Error object. In the text, it says "The error codes from and including -32768 to -32000 are reserved for pre-defined errors" for their entire reserved range, but in the table it's "-32000 to -32099" for the reserved server error range. |
|
I named them that way since you usually get a next error by adding +1. Constantly doing this brings you from start to end. |
The comment states that it is the start of the range, but the variable name states it is the end. The variable name seems to be correct, so update the comment.