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
Improve error message for timeouts #2037
Comments
I'll be happy to review a PR. |
I was also able to get long stack traces by patching global Promise with bluebird (which still has the most robust long stack traces implementation I've seen): const Bluebird = require('bluebird')
Bluebird.config({ longStackTraces: true })
global.Promise = Bluebird
There currently is no native way to maintain stack traces with |
Including bluebird just for this seems rather excessive. Is this on the Node roadmap? |
I don't think so. Async call stacks when using |
Also personally don't really have a problem with a 194KB devDependency if I get long stack traces in return. The benefit it huge, what's the cost? I don't use any Bluebird API, the application sees no difference. |
Suggestion: |
This patch adds title for WaitTask, using it later in generating error messages and making exceptions much more traceable. Fixes #2037
When a
page.waitFor()
times out, this is all error context a dev gets:No stack trace and no indication what operation timed out.
An easy change to an error message like
would make a huge difference in knowing where to look.
The text was updated successfully, but these errors were encountered: