Skip to content

Commit 96cb477

Browse files
authored
Merge pull request #4771 from NativeScript/fix-hooks-execution
fix: fix the execution of hooks when there is unresolved injected dependency
2 parents 8c21260 + a2b13c9 commit 96cb477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/services/hooks-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export class HooksService implements IHooksService {
120120
const invalidArguments = this.validateHookArguments(hookEntryPoint);
121121

122122
if (invalidArguments.length) {
123-
this.$logger.warn(`${hookName} will NOT be executed because it has invalid arguments - ${invalidArguments.join(", ").grey}.`);
124-
return;
123+
this.$logger.warn(`${hook.fullPath} will NOT be executed because it has invalid arguments - ${invalidArguments.join(", ").grey}.`);
124+
continue;
125125
}
126126

127127
// HACK for backwards compatibility:

0 commit comments

Comments
 (0)