{"action":"opened","issue":{"url":"https://api.github.com/repos/zertosh/errorify/issues/8","repository_url":"https://api.github.com/repos/zertosh/errorify","labels_url":"https://api.github.com/repos/zertosh/errorify/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/zertosh/errorify/issues/8/comments","events_url":"https://api.github.com/repos/zertosh/errorify/issues/8/events","html_url":"https://github.com/zertosh/errorify/issues/8","id":151258677,"number":8,"title":"Error event or something?","user":{"login":"RinkAttendant6","id":351158,"avatar_url":"https://avatars.githubusercontent.com/u/351158?v=3","gravatar_id":"","url":"https://api.github.com/users/RinkAttendant6","html_url":"https://github.com/RinkAttendant6","followers_url":"https://api.github.com/users/RinkAttendant6/followers","following_url":"https://api.github.com/users/RinkAttendant6/following{/other_user}","gists_url":"https://api.github.com/users/RinkAttendant6/gists{/gist_id}","starred_url":"https://api.github.com/users/RinkAttendant6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RinkAttendant6/subscriptions","organizations_url":"https://api.github.com/users/RinkAttendant6/orgs","repos_url":"https://api.github.com/users/RinkAttendant6/repos","events_url":"https://api.github.com/users/RinkAttendant6/events{/privacy}","received_events_url":"https://api.github.com/users/RinkAttendant6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T22:56:31Z","updated_at":"2016-04-26T22:56:31Z","closed_at":null,"body":"Is it possible to emit/catch an error event or something so I can attach a custom callback function to execute in addition to the default `console.error` (for example trigger a system beep)?\r\n\r\nThis is my code:\r\n\r\n```js\r\nlet b = browserify(file, {\r\n    debug: true,\r\n    cache: {},\r\n    packageCache: {}\r\n});\r\n                \r\nlet bundle = () => b.bundle().pipe(fs.createWriteStream(outFile));\r\n                \r\nb.transform('babelify', {sourceMapsAbsolute: true})\r\n    .transform('brfs')\r\n    .plugin('minifyify', {\r\n        map: `${path.basename(outFile)}.map`,\r\n        output: `${outFile}.map`\r\n    });\r\n                \r\nbundle();\r\nb.plugin(errorify)\r\n    .plugin(watchify, {poll: true})\r\n    .on('update', bundle)\r\n    .on('log', (msg) => console.log('Bundle %s created. %s', file, msg));\r\n```\r\n\r\nI've tried attaching to `.on('error')` but it does not get triggered."}}