Skip to content

Commit

Permalink
fix(schematics): ammend command in script errors
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio-martinez authored and vsavkin committed Feb 19, 2018
1 parent 70f7b60 commit 9128fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/schematics/src/command-line/affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export function affected(args: string[]): void {

function printError(command: string, e: any) {
console.error(`Pass the SHA range, as follows: npm run affected:${command} -- SHA1 SHA2.`);
console.error(
`Or pass the list of files, as follows: npm run affected:${command} --files="libs/mylib/index.ts,libs/mylib2/index.ts".`
);
console.error(`Or pass the list of files, as follows: npm run affected:${command} -- --files="libs/mylib/index.ts,libs/mylib2/index.ts".`);
console.error(e.message);
}

Expand Down
4 changes: 1 addition & 3 deletions packages/schematics/src/command-line/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ function getPatternsFromApps(affectedFiles: string[]): string[] {

function printError(command: string, e: any) {
console.error(`Pass the SHA range, as follows: npm run format:${command} -- SHA1 SHA2.`);
console.error(
`Or pass the list of files, as follows: npm run format:${command} --files="libs/mylib/index.ts,libs/mylib2/index.ts".`
);
console.error(`Or pass the list of files, as follows: npm run format:${command} -- --files="libs/mylib/index.ts,libs/mylib2/index.ts".`);
console.error(e.message);
}

Expand Down

0 comments on commit 9128fa8

Please sign in to comment.