Improve logging in delete item procedure of FPExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-04-16 01:54:37 +08:00
parent 485b07a805
commit dab28f20f4
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -289,6 +289,9 @@ import OSLog
guard let item = Item.storedItem(identifier: identifier, usingKit: ncKit) else {
Logger.fileProviderExtension.error(
"Not deleting item \(identifier.rawValue, privacy: .public), item not found"
)
completionHandler(NSFileProviderError(.noSuchItem))
return Progress()
}