We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903f720 commit f5e126fCopy full SHA for f5e126f
packages/angular/cli/models/architect-command.ts
@@ -66,8 +66,12 @@ export abstract class ArchitectCommand<
66
return;
67
}
68
69
- const commandLeftovers = options['--'];
70
let projectName = options.project;
+ if (projectName && !this._workspace.projects.has(projectName)) {
71
+ throw new Error(`Project '${projectName}' does not exist.`);
72
+ }
73
+
74
+ const commandLeftovers = options['--'];
75
const targetProjectNames: string[] = [];
76
for (const [name, project] of this._workspace.projects) {
77
if (project.targets.has(this.target)) {
0 commit comments