log error when there are plugins with wrong path
parent
c7ea967997
commit
065a3af3d6
|
@ -33,7 +33,7 @@ loadStylesheet = (path) ->
|
|||
|
||||
loadPlugin = (pluginPath) ->
|
||||
return new Promise (resolve, reject) ->
|
||||
$.getJSON(pluginPath).then (plugin) ->
|
||||
success = (plugin) ->
|
||||
window.taigaContribPlugins.push(plugin)
|
||||
|
||||
if plugin.css
|
||||
|
@ -45,6 +45,11 @@ loadPlugin = (pluginPath) ->
|
|||
else
|
||||
resolve()
|
||||
|
||||
fail = () ->
|
||||
console.error("error loading", pluginPath);
|
||||
|
||||
$.getJSON(pluginPath).then(success, fail)
|
||||
|
||||
loadPlugins = (plugins) ->
|
||||
promises = []
|
||||
_.map plugins, (pluginPath) ->
|
||||
|
|
Loading…
Reference in New Issue