Browse Source

Fixed error

Marino Faggiana 6 years ago
parent
commit
01b7622711
2 changed files with 4 additions and 1 deletions
  1. 3 0
      PickerFileProvider/FileProviderItem.swift
  2. 1 1
      iOSClient/Utility/CCError.m

+ 3 - 0
PickerFileProvider/FileProviderItem.swift

@@ -111,6 +111,9 @@ class FileProviderItem: NSObject, NSFileProviderItem {
                 self.isMostRecentVersionDownloaded = true
                 self.isUploading = true
                 self.isUploaded = false
+                if metadata.sessionError != "" {
+                    uploadingError = NSError(domain: NSCocoaErrorDomain, code: NSFeatureUnsupportedError, userInfo:[:])
+                }
             }
             
         } else {

+ 1 - 1
iOSClient/Utility/CCError.m

@@ -85,7 +85,7 @@
             break;
         default:
             if (withNumberError) return [NSString stringWithFormat:@"%ld", (long)errorCode];
-            else return @"";
+            else return [NSString stringWithFormat:@"Error code %ld", (long)errorCode];;
             break;
     }
 }