Skip to content

Commit

Permalink
[fix] fixed formatting for socket hang ups
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
blakmatrix committed Nov 2, 2012
1 parent c89e3e5 commit 0be23f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/jitsu.js
Expand Up @@ -351,17 +351,18 @@ jitsu.showError = function (command, err, shallow, skip) {
if (err.stack && !shallow) {
if(err.message && err.message === 'socket hang up'){
if (err.code){
jitsu.log.info('');
if (err.code === 'ECONNRESET'){
jitsu.log.info(
'\njitsu\'s client request timed out before the server ' +
'jitsu\'s client request timed out before the server ' +
'could respond'
);
jitsu.log.info(
jitsu.log.help(
'This error may be due to network connection problems'
);
} else {
jitsu.log.info('\nThe nodejitsu api reset the connection');
jitsu.log.info(
jitsu.log.info('The nodejitsu api reset the connection');
jitsu.log.help(
'This error may be due to the application or the drone server'
);
}
Expand Down

0 comments on commit 0be23f0

Please sign in to comment.