diff --git a/dev-infra/format/format.ts b/dev-infra/format/format.ts index 7f05348148..50e458503d 100644 --- a/dev-infra/format/format.ts +++ b/dev-infra/format/format.ts @@ -70,7 +70,7 @@ export async function checkFiles(files: string[]) { // Inform user how to format files in the future. info(); info(`To format the failing file run the following command:`); - info(` yarn ng-dev format files ${failures.join(' ')}`); + info(` yarn ng-dev format files ${failures.map(f => f.filePath).join(' ')}`); process.exit(1); } } else { diff --git a/dev-infra/ng-dev.js b/dev-infra/ng-dev.js index ad96619fc7..22f0a35bc3 100755 --- a/dev-infra/ng-dev.js +++ b/dev-infra/ng-dev.js @@ -2683,7 +2683,7 @@ function checkFiles(files) { // Inform user how to format files in the future. info(); info(`To format the failing file run the following command:`); - info(` yarn ng-dev format files ${failures.join(' ')}`); + info(` yarn ng-dev format files ${failures.map(f => f.filePath).join(' ')}`); process.exit(1); } }