From f8f22928c25818116a82adf4bebbc1271116ef8a Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Sun, 20 Oct 2024 11:17:33 +0900 Subject: [PATCH] Add comment about errors on success --- src/CCVTAC.Console/ExternalTools/Runner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CCVTAC.Console/ExternalTools/Runner.cs b/src/CCVTAC.Console/ExternalTools/Runner.cs index e4aa2de..ebc0f6f 100644 --- a/src/CCVTAC.Console/ExternalTools/Runner.cs +++ b/src/CCVTAC.Console/ExternalTools/Runner.cs @@ -50,7 +50,7 @@ private static bool IsSuccessExitCode(HashSet otherSuccessExitCodes, int ex var trimmedErrors = errors.TrimTerminalLineBreak(); return IsSuccessExitCode(otherSuccessExitCodes ?? [], process.ExitCode) - ? Result.Ok((process.ExitCode, trimmedErrors)) + ? Result.Ok((process.ExitCode, trimmedErrors)) // Errors will be considered warnings. : Result.Fail($"[{settings.Program.Name}] Exit code {process.ExitCode}: {trimmedErrors}."); } }