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
This commit is contained in:
Pete Bacon Darwin 2018-10-15 11:49:23 +01:00 committed by Kara Erickson
parent 1918f8d5b5
commit adce5064b0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}