Skip to content

Conversation

@prk-Jr
Copy link
Collaborator

@prk-Jr prk-Jr commented Jan 22, 2026

Unified error reporting across storage and signing modules allows for better debugging and traceability. Bare error enums previously lacked context on where failures originated. Using meaningful reports with attached context ensures that logs provide actionable information for operations teams without requiring changes to the core error variants.

Resolves: #191

Copy link
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good overall. Some improvement will get us closer to consistency. Thanks

@prk-Jr prk-Jr requested a review from aram356 January 27, 2026 06:38
Copy link
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good

@prk-Jr prk-Jr force-pushed the 191-standardize-error-handling-patterns-choose-between-reporttrustedservererror-and-bare-trustedservererror branch from b3943d2 to d691060 Compare January 28, 2026 12:26
Unified error reporting across storage and signing modules allows for better debugging and traceability. Bare error enums previously lacked context on where failures originated. Using meaningful reports with attached context ensures that logs provide actionable information for operations teams without requiring changes to the core error variants.

Resolves: #191
Using  on errors that are already of the correct type causes redundant nesting in the error report. This switches to  to add context without changing the error type, producing cleaner error chains.

Resolves: #191
@prk-Jr prk-Jr force-pushed the 191-standardize-error-handling-patterns-choose-between-reporttrustedservererror-and-bare-trustedservererror branch from d691060 to cb3f36a Compare January 28, 2026 12:35
@prk-Jr prk-Jr requested a review from aram356 January 28, 2026 14:13
Copy link
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

…se-between-reporttrustedservererror-and-bare-trustedservererror
@prk-Jr prk-Jr merged commit 7390c17 into main Jan 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize error handling patterns: Choose between Report<TrustedServerError> and bare TrustedServerError

4 participants