{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/300","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/300/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/300/events","html_url":"https://github.com/segmentio/nightmare/pull/300","id":112380199,"number":300,"title":"Excetions and console.logs now have event callbacks","user":{"login":"antpaw","id":108543,"avatar_url":"https://avatars.githubusercontent.com/u/108543?v=3","gravatar_id":"","url":"https://api.github.com/users/antpaw","html_url":"https://github.com/antpaw","followers_url":"https://api.github.com/users/antpaw/followers","following_url":"https://api.github.com/users/antpaw/following{/other_user}","gists_url":"https://api.github.com/users/antpaw/gists{/gist_id}","starred_url":"https://api.github.com/users/antpaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antpaw/subscriptions","organizations_url":"https://api.github.com/users/antpaw/orgs","repos_url":"https://api.github.com/users/antpaw/repos","events_url":"https://api.github.com/users/antpaw/events{/privacy}","received_events_url":"https://api.github.com/users/antpaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-20T14:23:48Z","updated_at":"2015-10-20T21:19:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/segmentio/nightmare/pulls/300","html_url":"https://github.com/segmentio/nightmare/pull/300","diff_url":"https://github.com/segmentio/nightmare/pull/300.diff","patch_url":"https://github.com/segmentio/nightmare/pull/300.patch"},"body":"There are two ways of getting an exception in Nightmare, one is to inject some \"bad\" code via .evaluate(), this will stop nightmare and even call done() in mocha. But there is also the issue with already existing code, that has errors, now there is an option to listen for this.\r\nSame with console log, before only console logs from evaluate() where shown."},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/149706585","html_url":"https://github.com/segmentio/nightmare/pull/300#issuecomment-149706585","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/300","id":149706585,"user":{"login":"antpaw","id":108543,"avatar_url":"https://avatars.githubusercontent.com/u/108543?v=3","gravatar_id":"","url":"https://api.github.com/users/antpaw","html_url":"https://github.com/antpaw","followers_url":"https://api.github.com/users/antpaw/followers","following_url":"https://api.github.com/users/antpaw/following{/other_user}","gists_url":"https://api.github.com/users/antpaw/gists{/gist_id}","starred_url":"https://api.github.com/users/antpaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antpaw/subscriptions","organizations_url":"https://api.github.com/users/antpaw/orgs","repos_url":"https://api.github.com/users/antpaw/repos","events_url":"https://api.github.com/users/antpaw/events{/privacy}","received_events_url":"https://api.github.com/users/antpaw/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T21:19:18Z","updated_at":"2015-10-20T21:19:18Z","body":"ok, done"}}