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

+4 -4
View File
@@ -888,8 +888,8 @@
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx; SDKROOT = macosx;
SHARED_BUILD = 57; SHARED_BUILD = 58;
SHARED_VERSION = 1.11; SHARED_VERSION = 1.11.1;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -950,8 +950,8 @@
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
SDKROOT = macosx; SDKROOT = macosx;
SHARED_BUILD = 57; SHARED_BUILD = 58;
SHARED_VERSION = 1.11; SHARED_VERSION = 1.11.1;
SWIFT_COMPILATION_MODE = wholemodule; SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_OPTIMIZATION_LEVEL = "-O";
+6 -1
View File
@@ -43,7 +43,12 @@ class ErrorAlertHandler {
case .ukey2: case .ukey2:
description = "Error.Crypto".localized() + ": \(ne.localizedDescription)" + fixInstructions description = "Error.Crypto".localized() + ": \(ne.localizedDescription)" + fixInstructions
case .canceled(reason: let reason): case .canceled(reason: let reason):
description = reason.localizedDescription() if reason == .timedOut {
description = reason.localizedDescription() + fixInstructions
}
else {
description = reason.localizedDescription()
}
} }
} else { } else {
description = error.localizedDescription description = error.localizedDescription