Skip to content

Commit 57b80ee

Browse files
tobias74alan-agius4
authored andcommitted
fix(@angular-devkit/architect): add name of the non-existing project to error message
1 parent 81ccf91 commit 57b80ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/architect/node/node-modules-architect-host.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
129129

130130
const projectDefinition = this._workspace.projects.get(projectName);
131131
if (!projectDefinition) {
132-
throw new Error('Project does not exist.');
132+
throw new Error(`Project "${projectName}" does not exist.`);
133133
}
134134

135135
const metadata = ({
@@ -154,7 +154,7 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
154154
private findProjectTarget(target: Target) {
155155
const projectDefinition = this._workspace.projects.get(target.project);
156156
if (!projectDefinition) {
157-
throw new Error('Project does not exist.');
157+
throw new Error(`Project "${target.project}" does not exist.`);
158158
}
159159

160160
return projectDefinition.targets.get(target.target);

0 commit comments

Comments
 (0)