Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
347212ad89
commit
2cb2e299a3
@ -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