Skip to content

Commit

Permalink
[fix minor] Be less redundant notifying users about errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Aug 30, 2013
1 parent 8cc308c commit a0a6455
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/jitsu.js
Expand Up @@ -355,13 +355,7 @@ jitsu.showError = function (command, err, shallow, skip) {
jitsu.logFile.log(err);
}

if (err.message) {
jitsu.log.error(err.message);
}

if (err.result) {
jitsu.log.error('');
jitsu.log.error('There was an error while attempting to start the app.');
if (err.result.message) {
jitsu.log.error(err.result.message);
}
Expand Down Expand Up @@ -391,7 +385,7 @@ jitsu.showError = function (command, err, shallow, skip) {
: unknownError('Error returned from Nodejitsu:', err.result.errors[0].stack);
}
else if (err.result.stack) {
unknownError('Error returned from Nodejitsu:', err.result.stack);
return unknownError('Error returned from Nodejitsu:', err.result.stack);
}
}
else {
Expand All @@ -410,8 +404,14 @@ jitsu.showError = function (command, err, shallow, skip) {
jitsu.log.error(trace);
});
}

return;
}
}

if (err.message) {
jitsu.log.error(err.message);
}
}

jitsu.log.help("For help with this error contact Nodejitsu Support:");
Expand Down

0 comments on commit a0a6455

Please sign in to comment.