Skip to content

Commit

Permalink
fix(@angular-devkit/architect): add name of the non-existing project …
Browse files Browse the repository at this point in the history
…to error message
  • Loading branch information
tobias74 authored and alan-agius4 committed Aug 13, 2020
1 parent 81ccf91 commit 57b80ee
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -129,7 +129,7 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu

const projectDefinition = this._workspace.projects.get(projectName);
if (!projectDefinition) {
throw new Error('Project does not exist.');
throw new Error(`Project "${projectName}" does not exist.`);
}

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

return projectDefinition.targets.get(target.target);
Expand Down

0 comments on commit 57b80ee

Please sign in to comment.