Skip to content

Make 'Unhandled Rejection' error more prominent #1007

Open
@vitaly-kiselev-qa

Description

@vitaly-kiselev-qa

Contribution

Describe the user story

If you forget await somewhere you'll probably get the Unhandled Rejection and all your tests will be stopped.

At the moment the error looks like:

Terminating on critical error: Unhandled Rejection in testplane:worker:2083:
Promise: {}

Most of the time it is located in the middle of the test log and it is hard to understand that all of your tests were stopped because of it.

Describe the solution you'd like

Make the error message more dramatic:

————————————————————————————————————
CRITICAL ERROR OCCURED. TERMINATINING ALL TESTS.
Unhandled Rejection in testplane:worker:2083:
Promise: {}
————————————————————————————————————

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response

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