From 3b63205e70e00bf273472551787b783b0e310676 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 8 Nov 2020 06:58:45 -0500 Subject: [PATCH] websockets: Report exception when "TypeError" is caught Signed-off-by: Eric Callahan --- moonraker/websockets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/websockets.py b/moonraker/websockets.py index cb95e56..0574196 100644 --- a/moonraker/websockets.py +++ b/moonraker/websockets.py @@ -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: