mirror of
https://github.com/TuringSoftware/CrystalFetch.git
synced 2025-12-26 15:29:08 +08:00
downloader: fix log not recording error
This commit is contained in:
parent
b08cbda85e
commit
53dc56900f
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ actor Downloader {
|
|||
try FileManager.default.moveItem(at: resultUrl, to: destinationUrl)
|
||||
} catch {
|
||||
let error = error as NSError
|
||||
NSLog("Downloading %@ failed: ", debugIdentifier, error.localizedDescription)
|
||||
NSLog("Downloading %@ failed: %@", debugIdentifier, error.localizedDescription)
|
||||
if retry > 0 {
|
||||
let newTask: URLSessionDownloadTask
|
||||
if let resumeData = error.userInfo[NSURLSessionDownloadTaskResumeData] as? Data {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue