Update packages/core/scanner.ts

This commit is contained in:
Kamil Mysliwiec
2021-12-16 14:09:24 +01:00
committed by GitHub
parent bd36f6ee75
commit ab235a98c6

View File

@@ -151,8 +151,7 @@ export class DependenciesScanner {
this.isController(moduleToAdd) ||
this.isExceptionFilter(moduleToAdd)
) {
// TODO(v9): Throw the exception instead of just warning below, as well as
// the return of `USING_INVALID_CLASS_AS_A_MODULE_MESSAGE`.
// TODO(v9): Throw the exception instead of printing a warning
this.logger.warn(
new InvalidClassModuleException(moduleDefinition, scope).message,
);