websockets: Report exception when "TypeError" is caught

Signed-off-by:  Eric Callahan <arksine.coded@gmail.com>
This commit is contained in:
Arksine 2020-11-08 06:58:45 -05:00
parent ffdcfd527a
commit 3b63205e70
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class JsonRPC:
try:
result = await method(*args, **kwargs)
except TypeError as e:
return self.build_error(-32603, "Invalid params", req_id)
return self.build_error(-32603, f"Invalid params:\n{e}", req_id)
except ServerError as e:
return self.build_error(e.status_code, str(e), req_id)
except Exception as e: