Improve error handling in fetchContents if path is not available FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-14 19:01:34 +01:00
parent 68044891f0
commit 7863ba8594
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -196,6 +196,7 @@ class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension, NKComm
}
} catch let error {
NSLog("Could not find local path for file %@, received error: %@", metadata.fileNameView, error.localizedDescription)
completionHandler(nil, nil, NSFileProviderError(.cannotSynchronize))
}
return progress