refactor(ivy): fix incorrect error message in ngtsc "PathSegment" (#29453)
PR Close #29453
This commit is contained in:
parent
aaa8a3a957
commit
e57ed61448
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue