Skip to content

Add option for debug output for unexpected errors - #55

Open
mint-thompson wants to merge 1 commit into
mainfrom
wrap-system-errors
Open

Add option for debug output for unexpected errors#55
mint-thompson wants to merge 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.
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.

1 participant