1
0
Fork 0

- [JSONRPC] improved error message.

This commit is contained in:
cage 2023-07-08 12:11:08 +02:00
parent b96acd7c66
commit 0188d2f351
1 changed files with 5 additions and 2 deletions

View File

@ -364,8 +364,11 @@
(error 'json-rpc-error
:code (response-error-code +error-invalid-params+)
:transaction-id (id request)
:text (format nil
"Number of parameters (arity) not compatible with function")))
:text
(format nil
"Number of parameters (arity) not compatible with function: expected ~a got ~a."
(length (params request))
(length (params fun)))))
(t
(let* ((params (params request))
(called-by-name-p (called-by-name-p fun params)))