We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4f82d commit 060cf9fCopy full SHA for 060cf9f
pocketbase/errors.py
@@ -20,3 +20,15 @@ def __init__(
20
self.data = data or {}
21
self.is_abort = is_abort
22
self.original_error = original_error
23
+
24
+ def __str__(self) -> str:
25
+ base_message = super().__str__() or "ClientResponseError"
26
+ details = [
27
+ f"Message: {base_message}",
28
+ f"URL: {self.url or 'N/A'}",
29
+ f"Status: {self.status or 'N/A'}",
30
+ f"Data: {self.data or 'N/A'}",
31
+ f"Is Abort: {self.is_abort}",
32
+ f"Original Error: {self.original_error or 'N/A'}",
33
+ ]
34
+ return "\n".join(details)
0 commit comments