Skip to content

Commit

Permalink
Don't output symbol. Not helpful.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 19, 2024
1 parent 9096ddf commit 1fd696b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,14 @@ public void Apply(InvocationContext context)
terminal.ForegroundColor = ConsoleColor.Red;

foreach (var error in context.ParseResult.Errors)
if (error.SymbolResult != null)
terminal.Error.WriteLine($"{error.SymbolResult.Symbol}: {error.Message}");
else
terminal.Error.WriteLine(error.Message);
terminal.Error.WriteLine(error.Message);

terminal.ResetColor();
}
else
{
foreach (var error in context.ParseResult.Errors)
if (error.SymbolResult != null)
context.Console.Error.WriteLine($"{error.SymbolResult.Symbol}: {error.Message}");
else
context.Console.Error.WriteLine(error.Message);
context.Console.Error.WriteLine(error.Message);
}

context.ExitCode = _errorExitCode ?? 1;
Expand Down

0 comments on commit 1fd696b

Please sign in to comment.