Diagnostics: show (none) for empty last error in copy

This commit is contained in:
SuperDooper
2026-05-11 21:06:49 +02:00
parent 4b42a631be
commit 5a141095e1
+1 -1
View File
@@ -151,7 +151,7 @@ struct DiagnosticsView: View {
lines.append("")
lines.append("Last path: \(vm.diagLastPath)")
lines.append("Last status: \(vm.diagLastStatus)")
lines.append("Last error: \(vm.diagLastError)")
lines.append("Last error: \(vm.diagLastError.isEmpty ? \"(none)\" : vm.diagLastError)")
if let t = vm.diagLastFetch {
lines.append("Time: \(t.formatted(date: .omitted, time: .standard))")
}