Skip to content

Commit

Permalink
[minor] Increased brevity on new error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Oct 1, 2012
1 parent 4c62fa0 commit 23bbcf1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/jitsu.js
Expand Up @@ -352,16 +352,18 @@ jitsu.showError = function (command, err, shallow, skip) {
if(err.message && err.message === 'socket hang up'){
if (err.code){
if (err.code === 'ECONNRESET'){
jitsu.log.info('\nThis error may indicate that the jitsu client\'s request');
jitsu.log.info('timed out before the server could respond. If the application');
jitsu.log.info('normally takes time to load, please wait a few minutes to see if');
jitsu.log.info('the application deployed. Check the logs to see if there has been');
jitsu.log.info('an error or logging output with `jitsu logs`.');
jitsu.log.info(
'\njitsu\'s client request timed out before the server ' +
'could respond'
);
jitsu.log.info(
'This error may be due to network connection problems'
);
} else {
jitsu.log.info('\nThis error may indicate that the nodejitsu drone that the');
jitsu.log.info('application was deployed to may be experiencing difficulties');
jitsu.log.info('running the application. Check the application logs with `jitsu logs` ');
jitsu.log.info('to determine if there is an error or logging provided.');
jitsu.log.info('\nThe nodejitsu api reset the connection');
jitsu.log.info(
'This error may be due to the application or the drone server'
);
}

}
Expand Down

0 comments on commit 23bbcf1

Please sign in to comment.