Skip to content

Commit a6a9302

Browse files
committed
fix(@angular-devkit/architect): improve error message when configuration is mising
This commit makes the error message more actionable. Closes angular#29742
1 parent 9bce4c4 commit a6a9302

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
9090
}
9191

9292
if (!targetDefinition.configurations?.[configuration]) {
93-
throw new Error(`Configuration '${configuration}' is not set in the workspace.`);
93+
throw new Error(
94+
`Configuration '${configuration}' for target '${target}' in project '${project}' is not set in the workspace.`,
95+
);
9496
}
9597

9698
return (targetDefinition.configurations?.[configuration] ?? {}) as json.JsonObject;

0 commit comments

Comments
 (0)