Skip to content

Commit 7bc2e39

Browse files
Alanalexeagle
Alan
authored andcommitted
refactor: change error message to use option name instead of args
1 parent 2848964 commit 7bc2e39

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/browser

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/browser/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class BrowserBuilder implements Builder<BrowserBuilderSchema> {
113113
) {
114114
// Ensure Build Optimizer is only used with AOT.
115115
if (options.buildOptimizer && !options.aot) {
116-
throw new Error('The `--build-optimizer` option cannot be used without `--aot`.');
116+
throw new Error(`The 'buildOptimizer' option cannot be used without 'aot'.`);
117117
}
118118

119119
let wco: WebpackConfigOptions<NormalizedBrowserBuilderSchema>;

0 commit comments

Comments
 (0)