mirror of
https://github.com/Relintai/mono.git
synced 2024-11-22 11:10:15 +01:00
Backported from godot: Fixed issues relating to receiving an MSBuild warning/error that did not refer to any file
Fixed issues relating to receiving an MSBuild warning/error that did not
refer to any file
- RedOrbweaver
5cbe7fd750
This commit is contained in:
parent
6b8f603ea8
commit
d4f0216f5b
@ -88,7 +88,7 @@ namespace GodotTools.BuildLogger
|
||||
|
||||
WriteLine(line);
|
||||
|
||||
string errorLine = $@"error,{e.File.CsvEscape()},{e.LineNumber},{e.ColumnNumber}," +
|
||||
string errorLine = $@"error,{e.File?.CsvEscape() ?? string.Empty},{e.LineNumber},{e.ColumnNumber}," +
|
||||
$"{e.Code?.CsvEscape() ?? string.Empty},{e.Message.CsvEscape()}," +
|
||||
$"{e.ProjectFile?.CsvEscape() ?? string.Empty}";
|
||||
_issuesStreamWriter.WriteLine(errorLine);
|
||||
@ -103,7 +103,7 @@ namespace GodotTools.BuildLogger
|
||||
|
||||
WriteLine(line);
|
||||
|
||||
string warningLine = $@"warning,{e.File.CsvEscape()},{e.LineNumber},{e.ColumnNumber}," +
|
||||
string warningLine = $@"warning,{e.File?.CsvEscape() ?? string.Empty},{e.LineNumber},{e.ColumnNumber}," +
|
||||
$"{e.Code?.CsvEscape() ?? string.Empty},{e.Message.CsvEscape()}," +
|
||||
$"{e.ProjectFile?.CsvEscape() ?? string.Empty}";
|
||||
_issuesStreamWriter.WriteLine(warningLine);
|
||||
|
Loading…
Reference in New Issue
Block a user