Do not output summary if theres nothing to report
This commit is contained in:
parent
15af7e17c6
commit
6ad58b242e
|
@ -117,6 +117,7 @@ namespace ts {
|
|||
}
|
||||
|
||||
export function getErrorSummaryText(errorCount: number, newLine: string) {
|
||||
if (errorCount === 0) return "";
|
||||
const d = createCompilerDiagnostic(errorCount === 1 ? Diagnostics.Found_1_error : Diagnostics.Found_0_errors, errorCount);
|
||||
return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue