diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-03-17 10:40:20 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-03-19 09:38:19 +0100 |
| commit | bc7a2f8e2d7ff769339583233f64e7651e5f4331 (patch) | |
| tree | 5207d77f4a280d41fa7bdae802a36debc70709d5 /ios | |
| parent | 71e05505d43142e181390e5317a40bf8a3fd6b48 (diff) | |
| download | mullvadvpn-bc7a2f8e2d7ff769339583233f64e7651e5f4331.tar.xz mullvadvpn-bc7a2f8e2d7ff769339583233f64e7651e5f4331.zip | |
Fix multiline error message
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/DisplayChainedError.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ios/MullvadVPN/DisplayChainedError.swift b/ios/MullvadVPN/DisplayChainedError.swift index 8168323a31..daffe776b9 100644 --- a/ios/MullvadVPN/DisplayChainedError.swift +++ b/ios/MullvadVPN/DisplayChainedError.swift @@ -144,8 +144,13 @@ extension AppStorePaymentManager.Error: DisplayChainedError { case .sendReceipt(let restError): let reason = restError.errorChainDescription ?? "" + let format = NSLocalizedString(#""" +Failed to send the receipt to server: %@ - return String(format: NSLocalizedString(#"Failed to send the receipt to server: %@\n\nPlease retry by using the "Restore purchases" button."#, comment: ""), reason) +Please retry by using the "Restore purchases" button. +"""#, comment: "") + + return String(format: format, reason) case .storePayment(let storeError): return storeError.localizedDescription |
