Skip to content

Commit

Permalink
fix(bundling): update error message for esbuild-project generator so …
Browse files Browse the repository at this point in the history
…it shows correct project name and information (#12323)
  • Loading branch information
jaysoo committed Sep 29, 2022
1 parent c57f16c commit 20c3951
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -29,7 +29,9 @@ function checkForTargetConflicts(tree: Tree, options: EsBuildProjectSchema) {
if (options.skipValidation) return;
const project = readProjectConfiguration(tree, options.project);
if (project.targets?.build) {
throw new Error(`Project "${project.name}" already has a build target.`);
throw new Error(
`Project "${options.project}" already has a build target. Pass --skipValidation to ignore this error.`
);
}
}

Expand Down

0 comments on commit 20c3951

Please sign in to comment.