]> git.eshelyaron.com Git - emacs.git/commitdiff
Jsonrpc: fix error code in jsonrpc-error function (bug#64888)
authorJoão Távora <joaotavora@gmail.com>
Sat, 29 Jul 2023 10:15:14 +0000 (11:15 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 29 Jul 2023 10:15:14 +0000 (11:15 +0100)
* lisp/jsonrpc.el (jsonrpc-error): Fix error code.

lisp/jsonrpc.el

index c8b287a7e94123fcb797c3ad50c32d986045c1b9..e0315b3291550b2ba01d0d0e1944d3d26b30a14f 100644 (file)
@@ -223,7 +223,7 @@ object, using the keywords `:code', `:message' and `:data'."
              (apply #'format-message (car args) (cdr args))))
         (signal 'jsonrpc-error
                 `(,msg
-                  (jsonrpc-error-code . ,32603)
+                  (jsonrpc-error-code . ,-32603)
                   (jsonrpc-error-message . ,msg))))
     (cl-destructuring-bind (&key code message data) args
       (signal 'jsonrpc-error