Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>

This commit is contained in:
Matt Bruce 2026-01-15 11:12:00 -06:00
parent 347212ad89
commit 2cb2e299a3

View File

@ -234,7 +234,7 @@ actor FileStorageHelper {
do { do {
return try Data(contentsOf: url) return try Data(contentsOf: url)
} catch { } catch {
throw StorageError.fileError(error) throw StorageError.fileError(error.localizedDescription)
} }
} }
@ -246,7 +246,7 @@ actor FileStorageHelper {
do { do {
try FileManager.default.removeItem(at: url) try FileManager.default.removeItem(at: url)
} catch { } catch {
throw StorageError.fileError(error) throw StorageError.fileError(error.localizedDescription)
} }
} }
@ -258,7 +258,7 @@ actor FileStorageHelper {
do { do {
return try FileManager.default.contentsOfDirectory(atPath: url.path) return try FileManager.default.contentsOfDirectory(atPath: url.path)
} catch { } catch {
throw StorageError.fileError(error) throw StorageError.fileError(error.localizedDescription)
} }
} }
@ -271,7 +271,7 @@ actor FileStorageHelper {
let attributes = try FileManager.default.attributesOfItem(atPath: url.path) let attributes = try FileManager.default.attributesOfItem(atPath: url.path)
return attributes[.size] as? Int64 return attributes[.size] as? Int64
} catch { } catch {
throw StorageError.fileError(error) throw StorageError.fileError(error.localizedDescription)
} }
} }