From 78b922a84750deab20bfa5f60806cf2817ed1225 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 31 Mar 2016 09:14:09 +0200 Subject: [PATCH] Notify in the browser console if there is an error in the conf.json file --- app-loader/app-loader.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app-loader/app-loader.coffee b/app-loader/app-loader.coffee index 333e9860..6cbe2f03 100644 --- a/app-loader/app-loader.coffee +++ b/app-loader/app-loader.coffee @@ -55,6 +55,9 @@ promise = $.getJSON "/conf.json" promise.done (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 -> if window.taigaConfig.contribPlugins.length > 0 loadPlugins(window.taigaConfig.contribPlugins).then () ->