-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display an abstracted message for Sargon errors #1179
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, LGTM!
var body = await buildBody() | ||
if let additionalBodyInfo { | ||
body.append("\n\(additionalBodyInfo)") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would send the additionalBodyInfo
to buildBody()
/// Email Support | ||
public static let emailSupportButtonTitle = L10n.tr("Localizable", "error_emailSupportButtonTitle", fallback: "Email Support") | ||
/// Please email support to automatically provide debugging info, and get assistance. | ||
/// Code: %@ | ||
public static func emailSupportMessage(_ p1: Any) -> String { | ||
return L10n.tr("Localizable", "error_emailSupportMessage", String(describing: p1), fallback: "Please email support to automatically provide debugging info, and get assistance.\nCode: %@") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to merge radixdlt/apps-localization-src#411 before otherwise next time Swiftgen runs, these will be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a rule, normal PRs should never touch Localizable.strings or L10n.generated.swift, that should only be done in the automatic PRs from the crowdin integration.
Jira ticket: ABW-3454
Relates to #168
Description
Notes
If you want to simulate this error from Sargon, you can scan this invalid QR code:
Screenshot