mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Always install uncaught error handler
This commit is contained in:
@@ -48,10 +48,6 @@ describe "AtomEnvironment", ->
|
||||
beforeEach ->
|
||||
spyOn atom, 'openDevTools'
|
||||
spyOn atom, 'executeJavaScriptInDevTools'
|
||||
atom.installUncaughtErrorHandler()
|
||||
|
||||
afterEach: ->
|
||||
atom.uninstallUncaughtErrorHandler()
|
||||
|
||||
it "will open the dev tools when an error is triggered", ->
|
||||
try
|
||||
|
||||
@@ -193,6 +193,8 @@ class AtomEnvironment extends Model
|
||||
@registerDefaultDeserializers()
|
||||
@registerDefaultViewProviders()
|
||||
|
||||
@installUncaughtErrorHandler()
|
||||
|
||||
setConfigSchema: ->
|
||||
@config.setSchema null, {type: 'object', properties: _.clone(require('./config-schema'))}
|
||||
|
||||
@@ -579,8 +581,6 @@ class AtomEnvironment extends Model
|
||||
|
||||
# Call this method when establishing a real application window.
|
||||
startEditorWindow: ->
|
||||
@installUncaughtErrorHandler()
|
||||
|
||||
@commandInstaller.installAtomCommand false, (error) ->
|
||||
console.warn error.message if error?
|
||||
@commandInstaller.installApmCommand false, (error) ->
|
||||
|
||||
Reference in New Issue
Block a user