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
Message for unhandled promise rejection is not very helpful #19021
Labels
Comments
@foolip no |
At least in theory, the messages are not guaranteed to be stable. Adding the extra text makes sense to me. |
foolip
added a commit
that referenced
this issue
Sep 16, 2019
Toying with it in #19092 to see how much it affects. |
Assertion messages are not considered stable, but Chromium currently depends on them to some extent: gh-17974 |
foolip
added a commit
that referenced
this issue
Sep 20, 2019
foolip
added a commit
that referenced
this issue
Sep 20, 2019
foolip
added a commit
that referenced
this issue
Sep 23, 2019
Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes #19021.
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Sep 24, 2019
…n" to error message, a=testonly Automatic update from web-platform-tests [testharness.js] add "Unhandled rejection" to error message (#19092) Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes web-platform-tests/wpt#19021. -- wpt-commits: e84c738d2dab6b8a291e57c56be62f4c4a8f7381 wpt-pr: 19092
xeonchen
pushed a commit
to xeonchen/gecko
that referenced
this issue
Sep 25, 2019
…n" to error message, a=testonly Automatic update from web-platform-tests [testharness.js] add "Unhandled rejection" to error message (#19092) Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes web-platform-tests/wpt#19021. -- wpt-commits: e84c738d2dab6b8a291e57c56be62f4c4a8f7381 wpt-pr: 19092
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this issue
Oct 4, 2019
…n" to error message, a=testonly Automatic update from web-platform-tests [testharness.js] add "Unhandled rejection" to error message (#19092) Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes web-platform-tests/wpt#19021. -- wpt-commits: e84c738d2dab6b8a291e57c56be62f4c4a8f7381 wpt-pr: 19092 UltraBlame original commit: 88f6f32cd7cee0159a34aa1081084257a351e4b1
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this issue
Oct 4, 2019
…n" to error message, a=testonly Automatic update from web-platform-tests [testharness.js] add "Unhandled rejection" to error message (#19092) Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes web-platform-tests/wpt#19021. -- wpt-commits: e84c738d2dab6b8a291e57c56be62f4c4a8f7381 wpt-pr: 19092 UltraBlame original commit: 88f6f32cd7cee0159a34aa1081084257a351e4b1
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this issue
Oct 5, 2019
…n" to error message, a=testonly Automatic update from web-platform-tests [testharness.js] add "Unhandled rejection" to error message (#19092) Adds an infrastructure/ test to demo message. This doesn't test the message, just shows what it is. Fixes web-platform-tests/wpt#19021. -- wpt-commits: e84c738d2dab6b8a291e57c56be62f4c4a8f7381 wpt-pr: 19092 UltraBlame original commit: 88f6f32cd7cee0159a34aa1081084257a351e4b1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #18932 there was a harness error that said "The user aborted a request" or "The operation was aborted". This turned out to be because of an unhandled promise rejection and fixed in #19001.
That it was an unhandled promise rejection wasn't at all clear. That's because the handling of this is to simply use
event.reason.message
as the message:wpt/resources/testharness.js
Lines 3368 to 3399 in 152adb0
Prefixing the error with "Unhandled rejection" would really help.
@web-platform-tests/wpt-core-team for opinions.
The text was updated successfully, but these errors were encountered: