File tree Expand file tree Collapse file tree
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 Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
5757 } else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
5858 return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
5959 } else {
60- throw new Error ( ' Specified module does not exist' ) ;
60+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
6161 }
6262 }
6363}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
1616 const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
1717
1818 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` ) ;
2020 }
2121
2222 const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192192
193193 const modulePath = options . module ;
194194 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` ) ;
196196 }
197197
198198 const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
5757 } else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
5858 return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
5959 } else {
60- throw new Error ( ' Specified module does not exist' ) ;
60+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
6161 }
6262 }
6363}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
1616 const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
1717
1818 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` ) ;
2020 }
2121
2222 const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192192
193193 const modulePath = options . module ;
194194 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` ) ;
196196 }
197197
198198 const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
5757 } else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
5858 return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
5959 } else {
60- throw new Error ( ' Specified module does not exist' ) ;
60+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
6161 }
6262 }
6363}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
1616 const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
1717
1818 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` ) ;
2020 }
2121
2222 const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192192
193193 const modulePath = options . module ;
194194 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` ) ;
196196 }
197197
198198 const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
5757 } else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
5858 return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
5959 } else {
60- throw new Error ( ' Specified module does not exist' ) ;
60+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
6161 }
6262 }
6363}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
1616 const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
1717
1818 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` ) ;
2020 }
2121
2222 const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192192
193193 const modulePath = options . module ;
194194 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` ) ;
196196 }
197197
198198 const text = host . read ( modulePath ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function findModuleFromOptions(
5757 } else if ( host . exists ( modulePath + '/' + moduleBaseName + '.module.ts' ) ) {
5858 return normalize ( modulePath + '/' + moduleBaseName + '.module.ts' ) ;
5959 } else {
60- throw new Error ( ' Specified module does not exist' ) ;
60+ throw new Error ( ` Specified module path ${ modulePath } does not exist` ) ;
6161 }
6262 }
6363}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function addReducerToState(options: any): Rule {
1616 const reducersPath = normalize ( `/${ options . path } /${ options . reducers } ` ) ;
1717
1818 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` ) ;
2020 }
2121
2222 const text = host . read ( reducersPath ) ;
@@ -192,7 +192,7 @@ export function addReducerImportToNgModule(options: any): Rule {
192192
193193 const modulePath = options . module ;
194194 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` ) ;
196196 }
197197
198198 const text = host . read ( modulePath ) ;
You can’t perform that action at this time.
0 commit comments