mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 13:11:55 +00:00
errors
This commit is contained in:
1 parent
1beac197f1
commit
cb77cdd534
1 file changed
+10
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user