From 467b53f143a0c3d7328fe85e9d1215eceb9b150a Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 13 Nov 2025 11:13:01 -0800 Subject: Start surfacing server errors properly to communicate permissions better. --- Hotline/macOS/Files/FilesView.swift | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Hotline/macOS/Files/FilesView.swift') diff --git a/Hotline/macOS/Files/FilesView.swift b/Hotline/macOS/Files/FilesView.swift index 2386d2a..ab93cbc 100644 --- a/Hotline/macOS/Files/FilesView.swift +++ b/Hotline/macOS/Files/FilesView.swift @@ -448,14 +448,14 @@ struct FilesView: View { @MainActor private func downloadFile(_ file: FileInfo) { if file.isFolder { - model.downloadFolder(file.name, path: file.path) + self.model.downloadFolder(file.name, path: file.path) } else { - model.downloadFile(file.name, path: file.path) + self.model.downloadFile(file.name, path: file.path) } } - @MainActor private func uploadFile(file fileURL: URL, to path: [String]) { + @MainActor private func uploadFile(file fileURL: URL, to path: [String]) throws { self.model.uploadFile(url: fileURL, path: path) { info in Task { // Refresh file listing to display newly uploaded file. @@ -508,9 +508,13 @@ struct FilesView: View { if file.path.count > 1 { parentPath = Array(file.path[0..