Nicer logging + Monitoring progress
This commit is contained in:
parent
a82b66c637
commit
09b01f5ccf
5 changed files with 47 additions and 22 deletions
server/services
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue