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.
1 parent 15af7e1 commit 6ad58b2Copy full SHA for 6ad58b2
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