Add error instructions for timeout

This commit is contained in:
Leon Böttger committed 2025-07-28 21:12:22 +02:00
1 parent 86bde438e2
commit eac2df3d44
2 files changed
+10 -5

No files matched your search

+6 -1
View File
@@ -43,7 +43,12 @@ class ErrorAlertHandler {
case .ukey2:
description = "Error.Crypto".localized() + ": \(ne.localizedDescription)" + fixInstructions
case .canceled(reason: let reason):
description = reason.localizedDescription()
if reason == .timedOut {
description = reason.localizedDescription() + fixInstructions
}
else {
description = reason.localizedDescription()
}
}
} else {
description = error.localizedDescription