Skip to content
Permalink
Browse files

[fix] Improve error output

  • Loading branch information...
julianduque committed Nov 29, 2013
1 parent 20e7dbc commit 17109d010cf5a3e73a88caed053871c3e4a7a54a
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/jitsu.js
@@ -365,6 +365,19 @@ jitsu.showError = function (command, err, shallow, skip) {
jitsu.log.error(err.result.message);
}

if (err.result.error) {
if (~err.result.error.indexOf('matching versions')) {
jitsu.log.error(err.result.error);
jitsu.log.error("Do not use a specific engine version, try a generic one (eg: 0.8.x or 0.10.x)");
}
else if (~err.result.error.indexOf('npm exited')) {
jitsu.log.error(err.result.error);
jitsu.log.error("npm installation failed, please double check your package.json dependencies");
} else {
jitsu.log.error(err.result.error);
}
}

if (err.result.errors && Array.isArray(err.result.errors)) {
errors = {
connection: err.result.errors.filter(function (err) {

0 comments on commit 17109d0

Please sign in to comment.
You can’t perform that action at this time.