feat(aria2): show detailed error message from aria2 (#2296)

This commit is contained in:
Aaron Liu
2025-04-27 10:36:06 +08:00
parent c6eef43590
commit 77ae381474
4 changed files with 4 additions and 2 deletions

View File

@@ -281,7 +281,7 @@ func (m *RemoteDownloadTask) monitor(ctx context.Context, dep dependency.Dep) (t
m.ResumeAfter(resumeAfter)
return task.StatusSuspending, nil
case downloader.StatusUnknown, downloader.StatusError:
return task.StatusError, fmt.Errorf("download task failed with state %q (%w)", status.State, queue.CriticalErr)
return task.StatusError, fmt.Errorf("download task failed with state %q (%w), errorMsg: %s", status.State, queue.CriticalErr, status.ErrorMessage)
}
m.ResumeAfter(resumeAfter)