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

Commits on Nov 27, 2023

  1. When an error is caught at the command level, log its stack trace

    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 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    00ae5bb View commit details
    Browse the repository at this point in the history