From 073db8182b9030cadea5d11920ebc3bc5d443da1 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 15 Mar 2023 13:24:28 +0100 Subject: [PATCH] Log errors in fetching local temporary file provider path Signed-off-by: Claudio Cambra --- .../NextcloudIntegration/FileProviderExt/LocalFilesUtils.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/LocalFilesUtils.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/LocalFilesUtils.swift index bb3a2bdbc..6e4d64bbc 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/LocalFilesUtils.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/LocalFilesUtils.swift @@ -32,6 +32,7 @@ func pathForFileProviderExtData() -> URL? { func pathForFileProviderTempFilesForDomain(_ domain: NSFileProviderDomain) throws -> URL? { guard let fpManager = NSFileProviderManager(for: domain) else { + Logger.localFileOps.error("Unable to get file provider manager for domain: \(domain.displayName, privacy: OSLogPrivacy.auto(mask: .hash))") throw NSFileProviderError(.providerNotFound) } @@ -41,6 +42,7 @@ func pathForFileProviderTempFilesForDomain(_ domain: NSFileProviderDomain) throw func localPathForNCFile(ocId: String, fileNameView: String, domain: NSFileProviderDomain) throws -> URL { guard let fileProviderFilesPathUrl = try pathForFileProviderTempFilesForDomain(domain) else { + Logger.localFileOps.error("Unable to get path for file provider temp files for domain: \(domain.displayName, privacy: OSLogPrivacy.auto(mask: .hash))") throw URLError(.badURL) }