Update Helpers
Summary: - Sources: Helpers Stats: - 1 file changed, 4 insertions(+), 4 deletions(-)
This commit is contained in:
parent
9415edf758
commit
0d9bd3735f
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user