Skip to content

Commit

Permalink
Suggest the usage of --verbose in case of version mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
tatablack committed Nov 28, 2018
1 parent 8bb3856 commit 2ae41d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ const checkVersion = (engineName, command) => {
logger.error(
`Expected ${engineName} version to match ${expected}, but got ${usedVersion}. 😱${EOL}`,
);

if (!userInput.verbose) {
logger.error(
`(pass the --verbose flag to the script for a more detailed output)${EOL}`,
);
}

logger.error(
`Please follow Skyscanner's node environment guide (see ${guide}).${EOL}`,
);
Expand Down

0 comments on commit 2ae41d8

Please sign in to comment.