mirror of
https://github.com/TuringSoftware/CrystalFetch.git
synced 2026-01-18 10:12:10 +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)
|
try FileManager.default.moveItem(at: resultUrl, to: destinationUrl)
|
||||||
} catch {
|
} catch {
|
||||||
let error = error as NSError
|
let error = error as NSError
|
||||||
NSLog("Downloading %@ failed: ", debugIdentifier, error.localizedDescription)
|
NSLog("Downloading %@ failed: %@", debugIdentifier, error.localizedDescription)
|
||||||
if retry > 0 {
|
if retry > 0 {
|
||||||
let newTask: URLSessionDownloadTask
|
let newTask: URLSessionDownloadTask
|
||||||
if let resumeData = error.userInfo[NSURLSessionDownloadTaskResumeData] as? Data {
|
if let resumeData = error.userInfo[NSURLSessionDownloadTaskResumeData] as? Data {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue