Skip to content

Commit

Permalink
fix: invalid projects to run-many cause it to exit (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbriggs authored and jaysoo committed Nov 25, 2019
1 parent 4ab9827 commit 4fada77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DefaultReporter {
if (affectedArgs.configuration) {
description += ` that are configured for "${affectedArgs.configuration}"`;
}
output.logSingleLine(`No projects ${description} were affected`);
output.logSingleLine(`No projects ${description} were run`);
return;
}

Expand Down
2 changes: 2 additions & 0 deletions packages/workspace/src/command-line/run-tasks/run-many.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export function getProjectsToRun(
title: `the following do not have configuration for "${target}"`,
bodyLines: noConfig.map(p => '- ' + p)
});

process.exit(1);
}
} else {
found = allProjects;
Expand Down

0 comments on commit 4fada77

Please sign in to comment.