mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
fix(AsyncFallibleButton): try to use failureReason and then fallback to localizedDescription
This commit is contained in:
@@ -88,7 +88,7 @@ struct AsyncFallibleButton<Label: View>: View {
|
||||
} catch {
|
||||
DispatchQueue.main.async {
|
||||
state = .error
|
||||
errorAlertMessage = error.localizedDescription
|
||||
errorAlertMessage = (error as? LocalizedError)?.failureReason ?? error.localizedDescription
|
||||
showErrorAlert = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user