We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1637cf commit 72a2856Copy full SHA for 72a2856
2 files changed
onekey_client/cli/firmware_upload.py
@@ -71,7 +71,7 @@ def upload_firmware(
71
click.echo(res["id"])
72
except QueryError as e:
73
click.echo("Error during firmware upload:")
74
- for error in e._errors:
+ for error in e.errors:
75
click.echo(f"- {error['message']}")
76
sys.exit(11)
77
onekey_client/errors.py
@@ -34,7 +34,7 @@ class QueryError(ClientError):
34
"""raised when a GraphQL query returns errors."""
35
36
def __init__(self, errors_json: dict):
37
- self._errors = errors_json
+ self.errors = errors_json
38
39
def __str__(self):
40
- return json.dumps(self._errors, indent=4)
+ return json.dumps(self.errors, indent=4)
0 commit comments