Skip to content

Commit 0014556

Browse files
arusahniaciccarello
authored andcommitted
[logger] Flatten messageText when no file is provided in the diagnostic output. (#802)
Fixes #495
1 parent 1bf3f17 commit 0014556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/loggers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class Logger {
134134
output += '(' + ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start).line + ')';
135135
output += ts.sys.newLine + ' ' + ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine);
136136
} else {
137-
output = diagnostic.messageText.toString();
137+
output = ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine);
138138
}
139139

140140
switch (diagnostic.category) {

0 commit comments

Comments
 (0)