We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e542eb4 commit 0d172a1Copy full SHA for 0d172a1
Bitkit/Views/Sheets/LnurlAuth/LnurlAuthSheet.swift
@@ -149,10 +149,14 @@ struct LnurlAuthSheet: View {
149
} catch {
150
Logger.error("Failed to handle LNURL auth: \(error)")
151
152
+ let errorMsg = (error as NSError).localizedDescription
153
+ .trimmingCharacters(in: .whitespacesAndNewlines)
154
+ let raw = errorMsg.isEmpty ? String(describing: type(of: error)) : errorMsg
155
+
156
app.toast(
157
type: .error,
158
title: t("other__lnurl_auth_error"),
- description: t("other__lnurl_auth_error_msg")
159
+ description: t("other__lnurl_auth_error_msg", variables: ["raw": raw])
160
)
161
}
162
0 commit comments