Skip to content

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.
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 15 additions and 1 deletion.
  1. +15 −1 lib/jitsu.js
View
16 lib/jitsu.js
@@ -350,7 +350,21 @@ jitsu.showError = function (command, err, shallow, skip) {
else {
if (err.stack && !shallow) {
if(err.message && err.message === 'socket hang up'){
- //nothing
+ 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`.');
+ } 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) {
jitsu.log.error(trace);

No commit comments for this range

Something went wrong with that request. Please try again.