ariya/phantomjs — pull request #253 by jonleighton (2012-05-31 10:32:40+00:00)
Title: Improve error handling

* Adds `e.stack`
* Sends `page.evaluate(...)` errors to the `page.onError` rather than `phantom.onError` handler
* Sends proper objects to the `onError` handler

https://code.google.com/p/phantomjs/issues/detail?id=166