From f49f6079d55794e8a7654348b09ab9aca1dcb8e7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 Jul 2022 15:14:31 +0200 Subject: [PATCH] Removed unused processor result --- I18N Commander/UI WinForms/ExtensionsError.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/I18N Commander/UI WinForms/ExtensionsError.cs b/I18N Commander/UI WinForms/ExtensionsError.cs index 0873d09..e21b8ee 100644 --- a/I18N Commander/UI WinForms/ExtensionsError.cs +++ b/I18N Commander/UI WinForms/ExtensionsError.cs @@ -4,12 +4,10 @@ namespace UI_WinForms; public static class ExtensionsError { - public static ProcessorResult ProcessError(this ProcessorResult result) + public static void ProcessError(this ProcessorResult result) { - if (result.Successful) - return result; - + if (result.Successful) return; + MessageBox.Show(result.ErrorMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - return result; } } \ No newline at end of file