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

(cherry picked from commit 57b80ee)
  • Loading branch information
tobias74 authored and alan-agius4 committed Aug 13, 2020
1 parent fb94db7 commit 85ff78d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 85ff78d

Please sign in to comment.