Skip to content

fix(error): wrap and re-throw errors #252

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

Merged
merged 3 commits into from
Apr 21, 2025
Merged

fix(error): wrap and re-throw errors #252

merged 3 commits into from
Apr 21, 2025

Conversation

avivkeller
Copy link
Member

Today I learned that Commander.js doesn't log errors thrown from the .action(handler), and those must be handled manually.

This PR adds a wrapper to each function that:
If error, log and exit.

@avivkeller avivkeller requested a review from a team as a code owner April 20, 2025 22:04
Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

LGTM

@avivkeller avivkeller merged commit 2b200f1 into main Apr 21, 2025
7 checks passed
@avivkeller avivkeller deleted the error-wrapping branch April 21, 2025 19:33
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.

4 participants