{"action":"created","issue":{"url":"https://api.github.com/repos/Jam3/hihat/issues/3","labels_url":"https://api.github.com/repos/Jam3/hihat/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Jam3/hihat/issues/3/comments","events_url":"https://api.github.com/repos/Jam3/hihat/issues/3/events","html_url":"https://github.com/Jam3/hihat/issues/3","id":87649706,"number":3,"title":"please consider disabling alerts & douncing dock icon on errors","user":{"login":"timoxley","id":43438,"avatar_url":"https://avatars.githubusercontent.com/u/43438?v=3","gravatar_id":"","url":"https://api.github.com/users/timoxley","html_url":"https://github.com/timoxley","followers_url":"https://api.github.com/users/timoxley/followers","following_url":"https://api.github.com/users/timoxley/following{/other_user}","gists_url":"https://api.github.com/users/timoxley/gists{/gist_id}","starred_url":"https://api.github.com/users/timoxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoxley/subscriptions","organizations_url":"https://api.github.com/users/timoxley/orgs","repos_url":"https://api.github.com/users/timoxley/repos","events_url":"https://api.github.com/users/timoxley/events{/privacy}","received_events_url":"https://api.github.com/users/timoxley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-12T08:08:12Z","updated_at":"2015-06-12T22:56:51Z","closed_at":null,"body":"My editor saves every time I switch file. Every time I switch file, if there happens to be a syntax error I'm plagued by a bouncing dock icon telling me about a giant alerts with a squashed stack trace. Is not ideal.\r\n\r\nLove this tool though!"},"comment":{"url":"https://api.github.com/repos/Jam3/hihat/issues/comments/111636417","html_url":"https://github.com/Jam3/hihat/issues/3#issuecomment-111636417","issue_url":"https://api.github.com/repos/Jam3/hihat/issues/3","id":111636417,"user":{"login":"timoxley","id":43438,"avatar_url":"https://avatars.githubusercontent.com/u/43438?v=3","gravatar_id":"","url":"https://api.github.com/users/timoxley","html_url":"https://github.com/timoxley","followers_url":"https://api.github.com/users/timoxley/followers","following_url":"https://api.github.com/users/timoxley/following{/other_user}","gists_url":"https://api.github.com/users/timoxley/gists{/gist_id}","starred_url":"https://api.github.com/users/timoxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoxley/subscriptions","organizations_url":"https://api.github.com/users/timoxley/orgs","repos_url":"https://api.github.com/users/timoxley/repos","events_url":"https://api.github.com/users/timoxley/events{/privacy}","received_events_url":"https://api.github.com/users/timoxley/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T22:56:51Z","updated_at":"2015-06-12T22:56:51Z","body":"Ok so here's the code in question: \r\n\r\n```coffee\r\n# Don't quit on fatal error.\r\nprocess.on 'uncaughtException', (error) ->\r\n  # Do nothing if the user has a custom uncaught exception handler.\r\n  if process.listeners('uncaughtException').length > 1\r\n    return\r\n\r\n  # Show error in GUI.\r\n  stack = error.stack ? \"#{error.name}: #{error.message}\"\r\n  message = \"Uncaught Exception:\\n#{stack}\"\r\n  require('dialog').showErrorBox 'A JavaScript error occured in the browser process', message\r\n\r\n```\r\nhttps://github.com/atom/electron/blob/02bdace366f38271b5c186412f42810ecb06e99e/atom/browser/lib/init.coffee#L33-L41\r\n\r\nI'm thinking the hihat exception handler should basically do the same thing except not using this godawful    alert box:`require('dialog').showErrorBox`"}}