Skip to content

Commit

Permalink
improved error logging of broken profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hexparrot authored Nov 1, 2019
1 parent b52b72e commit aa729c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ server.backend = function(base_dir, socket_emitter, user_config) {
}
], function(err, output) {
if (err || typeof output == 'undefined')
logging.error("Unable to retrieve profile: {0}. Please check your internet connectivity.".format(key));
logging.error("Unable to retrieve profile: {0}. The definition for this profile may be improperly formed or is pointing to an invalid URI.".format(key));
else {
logging.info("Downloaded information for collection: {0} ({1} entries)".format(collection.name, output.length));
profiles = profiles.concat(output);
Expand All @@ -244,7 +244,7 @@ server.backend = function(base_dir, socket_emitter, user_config) {
}
], function(err, output) {
if (err || typeof output == 'undefined')
logging.error("Unable to retrieve profile: {0}. Please check your internet connectivity.".format(key));
logging.error("Unable to retrieve profile: {0}. The definition for this profile may be improperly formed or is pointing to an invalid URI.".format(key));
else {
logging.info("Downloaded information for collection: {0} ({1} entries)".format(collection.name, output.length));
profiles = profiles.concat(output);
Expand Down

0 comments on commit aa729c5

Please sign in to comment.