Skip to content

Commit

Permalink
feat(genBase): show raw stdout for yo check (#1944)
Browse files Browse the repository at this point in the history
show raw stdout if yo >= 1.7.1 check fails
  • Loading branch information
Awk34 committed Jun 2, 2016
1 parent 1254626 commit 7ae3829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generators/generator-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function genBase(self) {
if(!process.env.CI) {
yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
throw new Error(`ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)
'yo --version' output: ${stdout}`);
}
});
} else {
Expand Down

0 comments on commit 7ae3829

Please sign in to comment.