mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +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 {
|
} catch {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
state = .error
|
state = .error
|
||||||
errorAlertMessage = error.localizedDescription
|
errorAlertMessage = (error as? LocalizedError)?.failureReason ?? error.localizedDescription
|
||||||
showErrorAlert = true
|
showErrorAlert = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user