From 1fd696bdd430b00fafcf9e6b5169253e474cf5cd Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Thu, 19 Dec 2024 13:25:30 -0600 Subject: [PATCH] Don't output symbol. Not helpful. --- src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs b/src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs index 51087852d..756f4a06b 100644 --- a/src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs +++ b/src/IKVM.Tools.Core/CommandLine/ParseErrorResult.cs @@ -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;