Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Rasterize example improvements #11911

Closed
betelgeuse opened this issue Jan 20, 2014 · 3 comments
Closed

Rasterize example improvements #11911

betelgeuse opened this issue Jan 20, 2014 · 3 comments

Comments

@betelgeuse
Copy link
Contributor

As requested in pull request 11907 opening an issue for my improvements for the rasterize example error handling.

@betelgeuse
Copy link
Contributor Author

Not a proper reference to #11907 so repeating.

betelgeuse added a commit to betelgeuse/phantomjs that referenced this issue Jan 20, 2014
@ariya
Copy link
Owner

ariya commented Jan 21, 2014

Is onResourceError necessary to quit the script? What if an embedded image fails to load, does that mean we should abandon the attempt to rasterize the page alltogether?

@betelgeuse
Copy link
Contributor Author

Maybe better to just have the exit status non zero then? I thought the user wouldn't expect files to be left around when the script returns error. Guess there's a use case for rendering those too.

@ariya ariya closed this as completed Aug 18, 2014
ariya pushed a commit that referenced this issue Aug 18, 2014
- Add onResourceTimeout to prevent process hang forever
- Output address unreachable and set exit code to 1
- Increase setTimeout from 200ms to 500ms

#11911
peter23 pushed a commit to peter23/phantomjs that referenced this issue Aug 18, 2014
peter23 pushed a commit to peter23/phantomjs that referenced this issue Aug 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants