Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: nodejitsu/jitsu
...
head fork: nodejitsu/jitsu
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 9 additions and 20 deletions.
  1. +9 −20 lib/jitsu.js
View
29 lib/jitsu.js
@@ -363,26 +363,15 @@ jitsu.showError = function (command, err, shallow, skip) {
}
else {
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(
- 'jitsu\'s client request timed out before the server ' +
- 'could respond. Please increase your client timeout' +
- '(Ex. `jitsu config set timeout 100000`)'
- );
- jitsu.log.help(
- 'This error may be due to network connection problems'
- );
- } else {
- jitsu.log.info('The nodejitsu api reset the connection');
- jitsu.log.help(
- 'This error may be due to the application or the drone server'
- );
- }
-
- }
+ if (err.message && err.message === 'socket hang up' && err.code && err.code === 'ECONNRESET') {
+ jitsu.log.info('The nodejitsu api reset the connection');
+ jitsu.log.help('This error may be due to the application or the drone server');
+ } else if (err.message && err.message === 'ETIMEDOUT'){
+ jitsu.log.info(
+ 'jitsu\'s client request timed out before the server ' +
+ 'could respond. Please increase your client timeout');
+ jitsu.log.help('(Example: `jitsu config set timeout 100000`)');
+ jitsu.log.help('This error may be due to network connection problems');
} else {
err.stack.split('\n').forEach(function (trace) {
jitsu.log.error(trace);

No commit comments for this range

Something went wrong with that request. Please try again.