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