Improved error logging if a plugin fails to load.
parent
74c66fba62
commit
49d51cbbbd
|
@ -50,8 +50,8 @@ loadPlugin = (pluginPath) ->
|
|||
else
|
||||
resolve()
|
||||
|
||||
fail = () ->
|
||||
console.error("error loading", pluginPath)
|
||||
fail = (a, errorStr, e) ->
|
||||
console.error("error loading", pluginPath, e)
|
||||
|
||||
$.getJSON(pluginPath).then(success, fail)
|
||||
|
||||
|
|
Loading…
Reference in New Issue