Skip to content

Commit 78bd12c

Browse files
mmalerbajosephperrott
authored andcommitted
fix(ng-dev/ts-circular-dependencies): print errors when goldens are disabled (#2673)
Id the circular deps golden file is disabled for the repo, print the errors directly to the console instead so they can be addressed PR Close #2673
1 parent 2707802 commit 78bd12c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ng-dev/ts-circular-dependencies/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export function main(
115115
return 1;
116116
}
117117
if (cycles.length > 0) {
118-
Log.error(`x No circular dependencies are allow within this repository.`);
118+
Log.error(
119+
`x No circular dependencies are allow within this repository, but circular dependencies were found:`,
120+
);
121+
actual.forEach((c) => Log.error(` • ${convertReferenceChainToString(c)}`));
119122
return 1;
120123
}
121124

0 commit comments

Comments
 (0)