Skip to content

Commit 7ae3829

Browse files
committed
feat(genBase): show raw stdout for yo check (angular-fullstack#1944)
show raw stdout if yo >= 1.7.1 check fails
1 parent 1254626 commit 7ae3829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/generators/generator-base.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export function genBase(self) {
1818
if(!process.env.CI) {
1919
yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
2020
if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
21-
throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
21+
throw new Error(`ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)
22+
'yo --version' output: ${stdout}`);
2223
}
2324
});
2425
} else {

0 commit comments

Comments
 (0)