From cb77cdd534ca64138ad8de3b4368cafcb74b4fc6 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 6 Feb 2025 13:53:43 +0400 Subject: [PATCH] errors --- .../Views/UserSettings/NotificationsView.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/UserSettings/NotificationsView.swift b/apps/ios/Shared/Views/UserSettings/NotificationsView.swift index f4742e3cb0..1a94a37979 100644 --- a/apps/ios/Shared/Views/UserSettings/NotificationsView.swift +++ b/apps/ios/Shared/Views/UserSettings/NotificationsView.swift @@ -232,7 +232,11 @@ struct NotificationsView: View { ) } } catch let error { - logger.error("apiCheckToken \(responseError(error))") + await MainActor.run { + let err = responseError(error) + logger.error("apiCheckToken \(err)") + ntfAlert = .error(title: "Error checking token status", error: err) + } } } else { await MainActor.run { @@ -248,7 +252,11 @@ struct NotificationsView: View { } } } catch let error { - logger.error("testServerConnection \(responseError(error))") + await MainActor.run { + let err = responseError(error) + logger.error("testServerConnection \(err)") + ntfAlert = .error(title: "Error testing server connection", error: err) + } } } }