From adce5064b0c51de9a70d235763a3e8451c67c748 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 15 Oct 2018 11:49:23 +0100 Subject: [PATCH] fix(ivy): fix 'Module not found` error message (#26403) The message was dumping a serialized object instead of a human readable name into the exception being thrown. PR Close #26403 --- .../compiler-cli/src/ngtsc/annotations/src/selector_scope.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts b/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts index 3a669955cc..4f41fc09ea 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/selector_scope.ts @@ -198,7 +198,7 @@ export class SelectorScopeRegistry { SelectorScopes { const result = this.lookupScopes(node, ngModuleImportedFrom); if (result === null) { - throw new Error(`Module not found: ${reflectIdentifierOfDeclaration(node)}`); + throw new Error(`Module not found: ${reflectNameOfDeclaration(node)}`); } return result; }