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

Trap unhandled failures #10018

Merged
merged 1 commit into from Sep 14, 2022
Merged

Trap unhandled failures #10018

merged 1 commit into from Sep 14, 2022

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Sep 13, 2022

If an exception escapes from the main cli() function, we don't handle it. On Node < 16 that results in a successful process exit code even though the process has crashed.

On Node >= 16 this was not a bug because of the stricter handling of unhandled promise rejections.

You can demonstrate the bug by putting a string in ember-addon.paths in your app's package.json file. (It's supposed to be an array, and will cause a crash.)

If an exception escapes from the main `cli()` function, we don't handle it. On Node < 16 that results in a successful process exit code even though the process has crashed.

On Node >= 16 this was not a bug because of the stricter handling of unhandled promise rejections.

You can demonstrate the bug by putting a string in `ember-addon.paths` in your app's package.json file. (It's supposed to be an array, and will cause a crash.)
@kellyselden kellyselden merged commit 70f921b into master Sep 14, 2022
@kellyselden kellyselden deleted the fix-unhandled-failures branch September 14, 2022 17:08
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

2 participants