Add a nice error message if no nodes.json URL is set.

This commit is contained in:
baldo 2017-05-13 11:38:51 +02:00
parent 6214404b64
commit 8ec1b3e845

View file

@ -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];