Browse Source

modify error message imagemeter

marinofaggiana 5 years ago
parent
commit
0e1b3e8002
1 changed files with 2 additions and 6 deletions
  1. 2 6
      iOSClient/Main/NCMainCommon.swift

+ 2 - 6
iOSClient/Main/NCMainCommon.swift

@@ -1241,12 +1241,8 @@ class NCNetworkingMain: NSObject, CCNetworkingDelegate {
                     if let fileHandle = FileHandle(forReadingAtPath: annoPath) {
                         let dataFormat = fileHandle.readData(ofLength: 1)
                         if dataFormat.starts(with: [0x01]) {
-                            do {
-                                let data = try Data(contentsOf: URL(fileURLWithPath:annoPath))
-                                print(data)
-                            } catch {
-                                print(error)
-                            }
+                            appDelegate.messageNotification("_error_", description: "File format binary error, library imagemeter not present. 🤷‍♂️", visible: true, delay: TimeInterval(k_dismissAfterSecond), type: TWMessageBarMessageType.error, errorCode: errorCode)
+                            return;
                         }
                         let dataZip = fileHandle.readData(ofLength: 4)
                         if dataZip.starts(with: [0x50, 0x4b, 0x03, 0x04]) {