From 7ee7964799c31327d7093e1c996157f9a955972c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 19 Dec 2024 17:38:37 +0800 Subject: [PATCH] ux: use trimmed error message --- src/Commands/Command.cs | 4 ++-- src/Views/LauncherPage.axaml | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Commands/Command.cs b/src/Commands/Command.cs index 96a5b9c9..3f61de17 100644 --- a/src/Commands/Command.cs +++ b/src/Commands/Command.cs @@ -120,8 +120,8 @@ namespace SourceGit.Commands { if (RaiseError) { - var errMsg = string.Join("\n", errs); - if (!string.IsNullOrWhiteSpace(errMsg)) + var errMsg = string.Join("\n", errs).Trim(); + if (!string.IsNullOrEmpty(errMsg)) Dispatcher.UIThread.Post(() => App.RaiseException(Context, errMsg)); } diff --git a/src/Views/LauncherPage.axaml b/src/Views/LauncherPage.axaml index 11ed153c..ee4c77eb 100644 --- a/src/Views/LauncherPage.axaml +++ b/src/Views/LauncherPage.axaml @@ -125,11 +125,9 @@ - - - - - + + +