marinofaggiana 3 years ago
parent
commit
f3bc358a8b

+ 5 - 1
iOSClient/Login/NCLogin.swift

@@ -270,7 +270,11 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
             }
             
         } else {
-            print("error")
+            
+            let message = String(format: NSLocalizedString("_certificate_not_found_", comment: ""), NCGlobal.shared.certificate)
+            let alertController = UIAlertController(title: NSLocalizedString("_file_not_found_", comment: ""), message: message, preferredStyle: .alert)
+            alertController.addAction(UIAlertAction(title: NSLocalizedString("_ok_", comment: ""), style: .default, handler: { action in }))
+            self.present(alertController, animated: true, completion: { })
         }
     }
     

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -174,6 +174,7 @@
 "_source_code_"             = "Get source code";
 "_account_select_"          = "Select the account";
 "_host_insert_"             = "Insert the host name, for example";
+"_certificate_not_found_"   = "File %@ in documents directory not found.";
 
 /* Background of the file listing view */
 "_use_as_background_"       = "Use it as a background";