From 8ec1b3e845ffce9ae60923e8a6277e9006dc78e8 Mon Sep 17 00:00:00 2001 From: baldo Date: Sat, 13 May 2017 11:38:51 +0200 Subject: [PATCH] Add a nice error message if no nodes.json URL is set. --- server/services/monitoringService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/services/monitoringService.js b/server/services/monitoringService.js index 438d221..9d460f4 100644 --- a/server/services/monitoringService.js +++ b/server/services/monitoringService.js @@ -665,7 +665,9 @@ angular.module('ffffng') retrieveNodeInformation: function (callback) { var urls = config.server.map.nodesJsonUrl; if (_.isEmpty(urls)) { - return callback(null); + return callback( + new Error('No nodes.json-URLs set. Please adjust config.json: server.map.nodesJsonUrl') + ); } if (_.isString(urls)) { urls = [urls];