mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 17:53:31 +01:00
refactor: Reduce duplicate code with Error.message()
also add some things I forgot in previous commits
This commit is contained in:
@@ -88,7 +88,7 @@ struct AsyncFallibleButton<Label: View>: View {
|
||||
} catch {
|
||||
DispatchQueue.main.async {
|
||||
state = .error
|
||||
errorAlertMessage = (error as? LocalizedError)?.failureReason ?? error.localizedDescription
|
||||
errorAlertMessage = error.message()
|
||||
showErrorAlert = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user