Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When an error is caught at the command level, log its stack trace #94

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

timrogers
Copy link
Owner

Each of our commands' handlers is wrapped with an error handler, actionErrorHandler, which logs the error message in red and then exits with status code 1.

An error's message is not necessarily super helpful - as seen with the Cannot read properties of null (reading '__typename') error in #85. This additionally logs the stack trace, giving more context on what went wrong and where.

Each of our commands' handlers is wrapped with an error handler,
`actionErrorHandler`, which logs the error message in red and
then exits with status code `1`.

An error's message is not necessarily super helpful - as seen
with the `Cannot read properties of null (reading '__typename')`
error in #85. This additionally logs the stack trace, giving more
context on what went wrong and where.
@timrogers timrogers merged commit ec936a9 into main Nov 27, 2023
9 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.

None yet

1 participant