Add a nice error message if no nodes.json URL is set.
This commit is contained in:
parent
6214404b64
commit
8ec1b3e845
1 changed files with 3 additions and 1 deletions
|
@ -665,7 +665,9 @@ angular.module('ffffng')
|
||||||
retrieveNodeInformation: function (callback) {
|
retrieveNodeInformation: function (callback) {
|
||||||
var urls = config.server.map.nodesJsonUrl;
|
var urls = config.server.map.nodesJsonUrl;
|
||||||
if (_.isEmpty(urls)) {
|
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)) {
|
if (_.isString(urls)) {
|
||||||
urls = [urls];
|
urls = [urls];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue