diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 032c5dc847b..eceaff3df6d 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1009,7 +1009,7 @@ namespace ts { } const category = DiagnosticCategory[diagnostic.category].toLowerCase(); - output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }${ sys.newLine }`; + output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) }${ host.getNewLine() }`; } return output; }