Skip to content

Make sure exit code is zero on unhandled promise rejection in node #182

@arichiardi

Description

@arichiardi

Hello @bensu and all!

I know this is controversial and I can handle it myself in my side of the code but I was wondering whether it makes sense to adopt the following solution by default for :node targets in case of unhandled promise rejection.

https://medium.com/@dtinth/making-unhandled-promise-rejections-crash-the-node-js-process-ffc27cfcc9dd

Leaving this here for further discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions