testplane icon indicating copy to clipboard operation
testplane copied to clipboard

Make 'Unhandled Rejection' error more prominent

Open vitaly-kiselev-qa opened this issue 5 months ago • 0 comments

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

vitaly-kiselev-qa avatar Aug 30 '24 06:08 vitaly-kiselev-qa