We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15af7e1 + 6ad58b2 commit 514e8a1Copy full SHA for 514e8a1
src/compiler/watch.ts
@@ -117,6 +117,7 @@ namespace ts {
117
}
118
119
export function getErrorSummaryText(errorCount: number, newLine: string) {
120
+ if (errorCount === 0) return "";
121
const d = createCompilerDiagnostic(errorCount === 1 ? Diagnostics.Found_1_error : Diagnostics.Found_0_errors, errorCount);
122
return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}`;
123
0 commit comments