Use | operator to concatenate multiline strings
This commit is contained in:
parent
2fdd3fd6ec
commit
08c91599b6
5 changed files with 6 additions and 6 deletions
|
|
@ -176,9 +176,9 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
|||
let error = error as NSError
|
||||
var message = error.localizedDescription
|
||||
if let underlyingError = error.userInfo[NSUnderlyingErrorKey] as? NSError {
|
||||
message = "\(message)\n\("UnderlyingError".localize(underlyingError.localizedDescription))"
|
||||
message = message | "UnderlyingError".localize(underlyingError.localizedDescription)
|
||||
if underlyingError.localizedDescription.contains("WrongPassphrase".localize()) {
|
||||
message = "\(message)\n\("RecoverySuggestion".localize())"
|
||||
message = message | "RecoverySuggestion".localize()
|
||||
gitCredential.delete()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue