From fea1acd5ea40ba80fbd3119a23cce4ea10a459bd Mon Sep 17 00:00:00 2001 From: Djavid Gabibiyan Date: Fri, 29 May 2020 13:02:22 +0500 Subject: [PATCH] fix: JsonRPC internal error code --- lib/rpcServer/errorHandlerDecorator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpcServer/errorHandlerDecorator.js b/lib/rpcServer/errorHandlerDecorator.js index 0ab1a9255..f00743d94 100644 --- a/lib/rpcServer/errorHandlerDecorator.js +++ b/lib/rpcServer/errorHandlerDecorator.js @@ -36,7 +36,7 @@ function errorHandlerDecorator(command, log) { if (log && typeof log.error === 'function') { log.error(e); } - throw new RPCError(-32602, 'Internal error'); + throw new RPCError(-32603, 'Internal error'); }); }; }