Skip to content

provide CLI option to die on UnhandledPromiseRejectionWarning #22213

Closed

Description

@cztomsik

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:

Activity

  1. BridgeAR commented on Aug 9, 2018

    @BridgeAR
    Member

    It is planned to implement this: #20097

  2. benjamingr commented on Sep 5, 2018

    @benjamingr
    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.

  3. apapirovski commented on Nov 29, 2018

    @apapirovski
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions