Improved error logging if a plugin fails to load.

stable
Brett Profitt 2017-06-24 14:14:18 -04:00 committed by Jesús Espino
parent 74c66fba62
commit 49d51cbbbd
1 changed files with 2 additions and 2 deletions

View File

@ -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)