refactor(ivy): fix incorrect error message in ngtsc "PathSegment" (#29453)

PR Close #29453
This commit is contained in:
Paul Gschwendtner 2019-03-21 23:43:10 +01:00 committed by Miško Hevery
parent aaa8a3a957
commit e57ed61448
1 changed files with 1 additions and 1 deletions

View File

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