From 62a478277e1fe60a69a2028c17e2c0dcc083c7c7 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun, 9 Apr 2023 13:41:58 -0700 Subject: [PATCH] fix(AsyncFallibleButton): try to use failureReason and then fallback to localizedDescription --- AltStore/View Components/AsyncFallibleButton.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltStore/View Components/AsyncFallibleButton.swift b/AltStore/View Components/AsyncFallibleButton.swift index 9d5c9d1c..24a91402 100644 --- a/AltStore/View Components/AsyncFallibleButton.swift +++ b/AltStore/View Components/AsyncFallibleButton.swift @@ -88,7 +88,7 @@ struct AsyncFallibleButton: View { } catch { DispatchQueue.main.async { state = .error - errorAlertMessage = error.localizedDescription + errorAlertMessage = (error as? LocalizedError)?.failureReason ?? error.localizedDescription showErrorAlert = true } }