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

provide CLI option to die on UnhandledPromiseRejectionWarning #22213

Closed
cztomsik opened this issue Aug 9, 2018 · 3 comments
Closed

provide CLI option to die on UnhandledPromiseRejectionWarning #22213

cztomsik opened this issue Aug 9, 2018 · 3 comments

Comments

@cztomsik
Copy link

cztomsik commented Aug 9, 2018

I do a lot of prototyping and ofc things go bad and so I see a lot of unhandled promise warnings. This is fine, I want to die in such case anyway but it would be really nice (and I think also easy to do) to actually just die instead of issuing the warning.

The warning explains that in future it will just die, without warning but I want the future now.

  • Version: v10.6.0
  • Platform: 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
  • Subsystem:
@BridgeAR
Copy link
Member

BridgeAR commented Aug 9, 2018

It is planned to implement this: #20097

@benjamingr
Copy link
Member

I do a lot of prototyping and ofc things go bad and so I see a lot of unhandled promise warnings. This is fine, I want to die in such case anyway but it would be really nice (and I think also easy to do) to actually just die instead of issuing the warning.

You're not the first (or 10th 😅) person to ask this. We plan to make this the default with GC related rejection and Ruben is adding a flag.

@apapirovski
Copy link
Contributor

There are other tracking issues for unhandled rejections so I think this can be closed. Do feel free to reopen if you feel I've made a mistake.

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

No branches or pull requests

4 participants