From e57ed61448253b3a126110118c1c3f8f7c6f2683 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 21 Mar 2019 23:43:10 +0100 Subject: [PATCH] refactor(ivy): fix incorrect error message in ngtsc "PathSegment" (#29453) PR Close #29453 --- packages/compiler-cli/src/ngtsc/path/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/path/src/types.ts b/packages/compiler-cli/src/ngtsc/path/src/types.ts index 3d9fcc8bb4..0e2188bf0e 100644 --- a/packages/compiler-cli/src/ngtsc/path/src/types.ts +++ b/packages/compiler-cli/src/ngtsc/path/src/types.ts @@ -74,7 +74,7 @@ export const PathSegment = { fromFsPath: function(str: string): PathSegment { const normalized = normalizeSeparators(str); if (isAbsolutePath(normalized)) { - throw new Error(`Internal Error: PathSegment.from(${str}): path is not relative`); + throw new Error(`Internal Error: PathSegment.fromFsPath(${str}): path is not relative`); } return normalized as PathSegment; },