Skip to content

Add option for debug output for unexpected errors - #55

Merged
mint-thompson merged 1 commit into
mainfrom
wrap-system-errors
Oct 26, 2026
Merged

mint-thompson merged 1 commit into
mainfrom
wrap-system-errors

Conversation

@mint-thompson

Copy link
Copy Markdown
Collaborator

When the debug output option is not set, an unexpected error will result in the error's message being shown to the user along with instructions on how to enable debug output. When the debug output option is set, an unexpected error will result in the error's message and stack trace being shown. This allows users to provide additional information in error reports while hiding the otherwise unhelpful stack trace by default.

An example of an unexpected error that is handled by this code would be a string that exceeds node's length limit for strings.

When the debug output option is not set, an unexpected error will result
in the error's message being shown to the user along with instructions
on how to enable debug output. When the debug output option is set, an
unexpected error will result in the error's message and stack trace
being shown. This allows users to provide additional information in
error reports, while hiding the otherwise unhelpful stack trace by
default.

An example of an unexpected error that is handled by this code would be
a string that exceeds node's length limit for strings.

@shaselton-usds shaselton-usds left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Additional help for the developers!

@mint-thompson
mint-thompson merged commit d00fd32 into main Oct 26, 2026
5 checks passed
@mint-thompson
mint-thompson deleted the wrap-system-errors branch October 26, 2026 14:23
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.

2 participants