There was an error while loading. Please reload this page.
1 parent 23f4be9 commit 62f49c3Copy full SHA for 62f49c3
src/compiler/program.ts
@@ -1003,7 +1003,7 @@ namespace ts {
1003
}
1004
1005
const category = DiagnosticCategory[diagnostic.category].toLowerCase();
1006
- output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, sys.newLine) }${ sys.newLine }`;
+ output += `${ category } TS${ diagnostic.code }: ${ flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) }${ host.getNewLine() }`;
1007
1008
return output;
1009
0 commit comments