Skip to content
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

Display errors if file does not exist #4

Open
SpaceK33z opened this issue Dec 23, 2015 · 2 comments
Open

Display errors if file does not exist #4

SpaceK33z opened this issue Dec 23, 2015 · 2 comments

Comments

@SpaceK33z
Copy link
Contributor

When executing:

./run-headless-chromium.js i-do-not-exist.html

It just starts Chromium and keeps waiting. I would expect it to throw an error and stop waiting.

@Rob--W
Copy link
Collaborator

Rob--W commented Dec 23, 2015

run-headless-chromium just starts Chrome and quits Chrome if any page prints "All tests completed!" to the console. That's about it.

If you want to debug file loading issues, then you could activate verbose logging:

LOG_CR_VERBOSITY=. ./run-headless-chromium i-do-noth-exists

If that is a bit much, then you can also filter messages using Chrome's --vmodule flag. E.g. with Chromium 47.0.2526.80, I get the following message:

$ LOG_CR_VERBOSITY=. ./run-headless-chromium/run-headless-chromium.js --vmodule=*/navigator_impl.cc=1,*=0 /tmp/non-existent

Starting Chromium...
VERBOSE1:navigator_impl.cc(168): Failed Provisional Load: file:///tmp/non-existent, error_code: -6, error_description: The file or directory could not be found., showing_repost_interstitial: 0, frame_id: 1

@SpaceK33z
Copy link
Contributor Author

Would it be an idea to automatically log these errors in run-headless-chromium? Because for this you need to have deep knowledge of Chromium flags, which you can not expect from someone who simply wants to see debug errors of his app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants