Skip to content

Commit 9601c3f

Browse files
committed
[NRL-1215] Add __str__ to OperationOutcomeError to allow logging of errors
1 parent 023e514 commit 9601c3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

layer/nrlf/core/errors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def response(self) -> Response:
7979
body=self.operation_outcome.model_dump_json(exclude_none=True, indent=2),
8080
)
8181

82+
def __str__(self):
83+
return f"OperationOutcomeError: {self.operation_outcome}"
84+
8285

8386
class ParseError(Exception):
8487
issues: List[OperationOutcomeIssue]

0 commit comments

Comments
 (0)