mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
don't let plugin break each other
This commit is contained in:
parent
d7661be2c1
commit
d7ef98de4f
@ -151,4 +151,8 @@ define (require, exports, module) ->
|
||||
|
||||
## load plugins
|
||||
plugins = _.map Dir.list(Chrome.appRoot() + "/plugins"), (plugin) ->
|
||||
require plugin
|
||||
try
|
||||
require plugin
|
||||
catch e
|
||||
name = _.last plugin.split '/'
|
||||
console.error "Problem loading plugin #{name}: #{e.message}"
|
||||
|
Loading…
Reference in New Issue
Block a user