Permalink
Browse files

[api][minor] Added copy for socket hang up errors regarding non clien…

…t issues #311
  • Loading branch information...
1 parent f03db00 commit 2c7ecd4a25859a8efe4a6096b554bcfe6ef935a7 @blakmatrix blakmatrix committed Sep 29, 2012
Showing with 11 additions and 5 deletions.
  1. +11 −5 lib/jitsu.js
View
16 lib/jitsu.js
@@ -352,12 +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 type of error is usually an indication that the jitsu client\'s');
- jitsu.log.info('request 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 the');
- jitsu.log.info('application deployed. Check the logs to see if there has been an error');
- jitsu.log.info('or logging output with `jitsu logs`.');
+ 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`.');
+ } 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.');
}
+
}
} else {
err.stack.split('\n').forEach(function (trace) {

0 comments on commit 2c7ecd4

Please sign in to comment.