File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@angular/cli/utilities/service-worker Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Filesystem } from '@angular/service-worker/config' ;
2
- import { stripIndent } from 'common-tags' ;
2
+ import { oneLine } from 'common-tags' ;
3
3
import * as crypto from 'crypto' ;
4
4
import * as fs from 'fs' ;
5
5
import * as path from 'path' ;
@@ -71,9 +71,9 @@ export function augmentAppWithServiceWorker(projectRoot: string, appRoot: string
71
71
const configPath = path . resolve ( appRoot , 'ngsw-config.json' ) ;
72
72
73
73
if ( ! fs . existsSync ( configPath ) ) {
74
- throw new Error ( stripIndent ` Expected to find an ngsw-config.json configuration file in the
75
- application root . Either provide one or disable Service Worker
76
- build support in angular-cli.json.` ) ;
74
+ throw new Error ( oneLine `Error: Expected to find an ngsw-config.json configuration
75
+ file in the ${ appRoot } folder . Either provide one or disable Service Worker
76
+ in . angular-cli.json.` ) ;
77
77
}
78
78
const config = fs . readFileSync ( configPath , 'utf8' ) ;
79
79
You can’t perform that action at this time.
0 commit comments