Merge pull request #940 from taigaio/Notify-in-the-browser-console-if-there-is-an-error-in-the-conf.json-file

Notify in the browser console if there is an error in the conf.json file
stable
Alejandro 2016-04-01 08:33:29 +02:00
commit 8464bc0d83
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ promise = $.getJSON "/conf.json"
promise.done (data) -> promise.done (data) ->
window.taigaConfig = _.assign({}, window.taigaConfig, data) window.taigaConfig = _.assign({}, window.taigaConfig, data)
promise.fail () ->
console.error "Your conf.json file is not a valid json file, please review it."
promise.always -> promise.always ->
if window.taigaConfig.contribPlugins.length > 0 if window.taigaConfig.contribPlugins.length > 0
loadPlugins(window.taigaConfig.contribPlugins).then () -> loadPlugins(window.taigaConfig.contribPlugins).then () ->