From ba2bf82540408b4a1361344b6868a37181c002da Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 15 Jan 2020 21:53:05 +0200 Subject: [PATCH] refactor(compiler-cli): fix typo in `TypeScriptCompilerHost#getExportsOfModule()` error message (#34811) PR Close #34811 --- packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts b/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts index f8ed94d344..d1f8b424b5 100644 --- a/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts +++ b/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts @@ -98,7 +98,7 @@ export class TypeScriptReflectionHost implements ReflectionHost { getExportsOfModule(node: ts.Node): Map|null { // In TypeScript code, modules are only ts.SourceFiles. Throw if the node isn't a module. if (!ts.isSourceFile(node)) { - throw new Error(`getDeclarationsOfModule() called on non-SourceFile in TS code`); + throw new Error(`getExportsOfModule() called on non-SourceFile in TS code`); } const map = new Map();