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 {
return try Data(contentsOf: url)
} catch {
throw StorageError.fileError(error)
throw StorageError.fileError(error.localizedDescription)
}
}
@ -246,7 +246,7 @@ actor FileStorageHelper {
do {
try FileManager.default.removeItem(at: url)
} catch {
throw StorageError.fileError(error)
throw StorageError.fileError(error.localizedDescription)
}
}
@ -258,7 +258,7 @@ actor FileStorageHelper {
do {
return try FileManager.default.contentsOfDirectory(atPath: url.path)
} 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)
return attributes[.size] as? Int64
} catch {
throw StorageError.fileError(error)
throw StorageError.fileError(error.localizedDescription)
}
}