downloader: fix log not recording error

This commit is contained in:
osy 2025-03-28 10:58:09 -07:00
parent b08cbda85e
commit 53dc56900f

View file

@ -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 {