mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Add localization for authentication errors
This commit is contained in:
+2
-1
@@ -127,7 +127,8 @@ final class ChangePasswordCoordinator: Coordinator, Presentable {
|
||||
/// Processes an error to either update the flow or display it to the user.
|
||||
@MainActor private func handleError(_ error: Error) {
|
||||
if let mxError = MXError(nsError: error as NSError) {
|
||||
changePasswordViewModel.displayError(.mxError(mxError.error))
|
||||
let message = mxError.authenticationErrorMessage()
|
||||
changePasswordViewModel.displayError(.mxError(message))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user