Skip to content

Commit 0491793

Browse files
committed
Propagate error message when building exception
This shows the message in the exception when it can't be processed by `raise_typed_exception`.
1 parent df1ac8c commit 0491793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onepassword/desktop_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def call_shared_library(self, payload: str, operation_kind: str) -> bytes:
9999

100100
success = parsed.get("success", False)
101101
if not success:
102-
e = Exception()
102+
e = Exception(payload)
103103
e.msg = payload
104104
raise_typed_exception(e)
105105

0 commit comments

Comments
 (0)