forked from LBRYCommunity/lbry-sdk
include fn name and args in jsonrpc error message
This commit is contained in:
parent
2c73c80c9f
commit
27bbd91635
1 changed files with 3 additions and 1 deletions
|
@ -591,7 +591,9 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
except Exception as e: # pylint: disable=broad-except
|
||||
log.exception("error handling api request")
|
||||
return JSONRPCError(
|
||||
str(e), JSONRPCError.CODE_APPLICATION_ERROR, format_exc()
|
||||
f"Error calling {function_name} with args {args}\n" + str(e),
|
||||
JSONRPCError.CODE_APPLICATION_ERROR,
|
||||
format_exc()
|
||||
)
|
||||
|
||||
def _verify_method_is_callable(self, function_path):
|
||||
|
|
Loading…
Reference in a new issue