You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unclear error message when a configuration is not present for a project #29742
When running a target, if a configuration isn't present, an error message is presented, as seen in the node architect host here. This is helpful, but especially when dealing with complex nested projects, the error message is not very helpful, as the project/target in question is not indicated.
This can be improved by changing that line as follows:
if (!targetDefinition.configurations?.[configuration]) {
throw new Error(`Configuration '${configuration}' for target '${target}' in project '${project}' is not set in the workspace.`);
}
Minimal Reproduction
Attempt to run any comment for a project:target with a configuration that does not exist. The project and target are not indicated in the error message.
Activity
fix(@angular-devkit/architect): improve error message when configurat…
fix(@angular-devkit/architect): improve error message when configurat…
fix(@angular-devkit/architect): improve error message when configurat…
fix(@angular-devkit/architect): improve error message when configurat…
fix(@angular-devkit/architect): improve error message when configurat…
tstackhouse commentedon Mar 4, 2025
Wow! Thanks for taking this on so quickly! Glad to help contribute to the community. I had filed this to submit a PR myself as a way to give back 😅
angular-automatic-lock-bot commentedon Apr 4, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.