Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
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
@@ -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 = ({
@@ -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);

0 comments on commit 85ff78d

Please sign in to comment.