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