Skip to content

Commit

Permalink
fix(@angular-devkit/architect): improve error message when configurat…
Browse files Browse the repository at this point in the history
…ion is mising

This commit makes the error message more actionable.

Closes #29742
  • Loading branch information
alan-agius4 committed Mar 4, 2025
1 parent 9bce4c4 commit a6a9302
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
}

if (!targetDefinition.configurations?.[configuration]) {
throw new Error(`Configuration '${configuration}' is not set in the workspace.`);
throw new Error(
`Configuration '${configuration}' for target '${target}' in project '${project}' is not set in the workspace.`,
);
}

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

0 comments on commit a6a9302

Please sign in to comment.