Nicer logging + Monitoring progress

This commit is contained in:
baldo 2016-05-24 19:14:09 +02:00
parent a82b66c637
commit 09b01f5ccf
5 changed files with 47 additions and 22 deletions
server/services

View file

@ -241,6 +241,13 @@ angular.module('ffffng')
return callback(err);
}
if (response.statusCode !== 200) {
return callback(new Error(
'Could not download nodes.json from ' + url + ': ' +
response.statusCode + ' - ' + response.statusMessage
));
}
parseNodesJson(body, function (err, data) {
if (err) {
return callback(err);