mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Log uncaught exceptions in browser process
This commit is contained in:
@@ -14,6 +14,10 @@ dialog = require 'dialog'
|
||||
console.log = (args...) ->
|
||||
nslog(args.map((arg) -> JSON.stringify(arg)).join(" "))
|
||||
|
||||
process.on 'uncaughtException', (error={}) ->
|
||||
nslog(error.message) if error.message?
|
||||
nslog(error.stack) if error.stack?
|
||||
|
||||
delegate.browserMainParts.preMainMessageLoopRun = ->
|
||||
args = parseCommandLine()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user