Skip to content

Commit e2163a0

Browse files
hanslvikerman
authored andcommitted
refactor(@angular-devkit/architect): clarify some error messages
They will be redone in classes before RC, but for now this helps diagnose obscure messages.
1 parent 4bfb297 commit e2163a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/angular_devkit/architect/node/node-modules-architect-host.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
6161
const builder = builderJson.builders && builderJson.builders[builderName];
6262

6363
if (!builder) {
64-
throw new Error(`Cannot find builder ${JSON.stringify(builderName)}.`);
64+
throw new Error(`Cannot find builder ${JSON.stringify(builderStr)}.`);
6565
}
6666

6767
const importPath = builder.implementation;
6868
if (!importPath) {
69-
throw new Error('Invalid builder JSON');
69+
throw new Error('Could not find the implementation for builder ' + builderStr);
7070
}
7171

7272
return Promise.resolve({

0 commit comments

Comments
 (0)