diff --git a/flat-manager-client b/flat-manager-client index c45d4b6..73f6a32 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -58,7 +58,11 @@ class ApiError(Exception): try: self.body = json.loads(body) except (json.JSONDecodeError, TypeError): - self.body = {"status": self.status, "error-type": "no-error", "message": "No json error details from server"} + self.body = { + "status": self.status, + "error-type": "no-error", + "message": f"Non-json error from server: {body}", + } def repr(self): return {