File tree Expand file tree Collapse file tree 16 files changed +23
-23
lines changed
effects/schematics-core/utility
entity/schematics-core/utility
router-store/schematics-core/utility
store-devtools/schematics-core/utility
store/schematics-core/utility Expand file tree Collapse file tree 16 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
57
57
} else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
58
58
return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
59
59
} else {
60
- throw new Error ( ' Specified module does not exist' ) ;
60
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
61
61
}
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
16
16
const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
17
17
18
18
if ( ! host . exists ( reducersPath ) ) {
19
- throw new Error ( ' Specified reducers path does not exist' ) ;
19
+ throw new Error ( ` Specified reducers path ${ reducersPath } does not exist` ) ;
20
20
}
21
21
22
22
const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192
192
193
193
const modulePath = options . module ;
194
194
if ( ! host . exists ( options . module ) ) {
195
- throw new Error ( ' Specified module does not exist' ) ;
195
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
196
196
}
197
197
198
198
const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
57
57
} else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
58
58
return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
59
59
} else {
60
- throw new Error ( ' Specified module does not exist' ) ;
60
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
61
61
}
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
16
16
const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
17
17
18
18
if ( ! host . exists ( reducersPath ) ) {
19
- throw new Error ( ' Specified reducers path does not exist' ) ;
19
+ throw new Error ( ` Specified reducers path ${ reducersPath } does not exist` ) ;
20
20
}
21
21
22
22
const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192
192
193
193
const modulePath = options . module ;
194
194
if ( ! host . exists ( options . module ) ) {
195
- throw new Error ( ' Specified module does not exist' ) ;
195
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
196
196
}
197
197
198
198
const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
57
57
} else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
58
58
return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
59
59
} else {
60
- throw new Error ( ' Specified module does not exist' ) ;
60
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
61
61
}
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
16
16
const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
17
17
18
18
if ( ! host . exists ( reducersPath ) ) {
19
- throw new Error ( ' Specified reducers path does not exist' ) ;
19
+ throw new Error ( ` Specified reducers path ${ reducersPath } does not exist` ) ;
20
20
}
21
21
22
22
const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192
192
193
193
const modulePath = options . module ;
194
194
if ( ! host . exists ( options . module ) ) {
195
- throw new Error ( ' Specified module does not exist' ) ;
195
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
196
196
}
197
197
198
198
const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
57
57
} else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
58
58
return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
59
59
} else {
60
- throw new Error ( ' Specified module does not exist' ) ;
60
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
61
61
}
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
16
16
const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
17
17
18
18
if ( ! host . exists ( reducersPath ) ) {
19
- throw new Error ( ' Specified reducers path does not exist' ) ;
19
+ throw new Error ( ` Specified reducers path ${ reducersPath } does not exist` ) ;
20
20
}
21
21
22
22
const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192
192
193
193
const modulePath = options . module ;
194
194
if ( ! host . exists ( options . module ) ) {
195
- throw new Error ( ' Specified module does not exist' ) ;
195
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
196
196
}
197
197
198
198
const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
57
57
} else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
58
58
return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
59
59
} else {
60
- throw new Error ( ' Specified module does not exist' ) ;
60
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
61
61
}
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
16
16
const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
17
17
18
18
if ( ! host . exists ( reducersPath ) ) {
19
- throw new Error ( ' Specified reducers path does not exist' ) ;
19
+ throw new Error ( ` Specified reducers path ${ reducersPath } does not exist` ) ;
20
20
}
21
21
22
22
const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192
192
193
193
const modulePath = options . module ;
194
194
if ( ! host . exists ( options . module ) ) {
195
- throw new Error ( ' Specified module does not exist' ) ;
195
+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
196
196
}
197
197
198
198
const text = host . read ( modulePath ) ;
You can’t perform that action at this time.
0 commit comments