From e2fff371ee6639f2ab479245381231144c46cccb Mon Sep 17 00:00:00 2001 From: SuperDooper <37051355+superdooper86@users.noreply.github.com> Date: Mon, 11 May 2026 21:06:53 +0200 Subject: [PATCH] Diagnostics: show (none) for empty last error in copy --- windows/PopupWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/PopupWindow.xaml.cs b/windows/PopupWindow.xaml.cs index 9d309f9..4563b47 100644 --- a/windows/PopupWindow.xaml.cs +++ b/windows/PopupWindow.xaml.cs @@ -624,7 +624,7 @@ public partial class PopupWindow : Window sb.AppendLine(); sb.AppendLine($"Last path: {VM.DiagLastPath}"); sb.AppendLine($"Last status: {VM.DiagLastStatus}"); - sb.AppendLine($"Last error: {VM.DiagLastError}"); + sb.AppendLine($"Last error: {(string.IsNullOrEmpty(VM.DiagLastError) ? "(none)" : VM.DiagLastError)}"); if (VM.DiagLastFetch.HasValue) sb.AppendLine($"Last fetch: {VM.DiagLastFetch.Value:HH:mm:ss}"); sb.AppendLine();