marinofaggiana 4 years ago
parent
commit
2a69503abf
2 changed files with 3 additions and 6 deletions
  1. 1 1
      Cartfile.resolved
  2. 2 5
      iOSClient/Networking/NCNetworking.swift

+ 1 - 1
Cartfile.resolved

@@ -19,7 +19,7 @@ github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
 github "marinofaggiana/TOPasscodeViewController" "0.0.6"
 github "marinofaggiana/XLForm" "eb9381ad8129f60402bf412250fb31b95a628a08"
-github "nextcloud/ios-communication-library" "d1c7169407d398f55bdfcecc805a7327eccb7b7b"
+github "nextcloud/ios-communication-library" "c1b13658a6156b3d39f2da225e8d84aa075f0a49"
 github "realm/realm-cocoa" "v4.4.1"
 github "rechsteiner/Parchment" "v1.7.0"
 github "scenee/FloatingPanel" "v1.7.4"

+ 2 - 5
iOSClient/Networking/NCNetworking.swift

@@ -362,14 +362,11 @@ import NCCommunication
             
             } else {
                 
-                var errorDescription = errorDescription
-                if errorDescription == nil { errorDescription = "Internal error. Error not found" }
-                
                 #if !EXTENSION
                 NCContentPresenter.shared.messageNotification("_error_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: errorCode)
                 #endif
                 
-                completion(account, nil, nil, errorCode, errorDescription!)
+                completion(account, nil, nil, errorCode, errorDescription)
             }
         }
     }
@@ -389,7 +386,7 @@ import NCCommunication
                 }
             } else {
 
-                completion(account, nil, errorCode, errorDescription!)
+                completion(account, nil, errorCode, errorDescription)
             }
         }
     }