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

@@ -139,6 +139,7 @@ func (a *aria2Client) Info(ctx context.Context, handle *downloader.TaskHandle) (
UploadSpeed: uploadSpeed,
SavePath: savePath,
NumPieces: numPieces,
ErrorMessage: status.ErrorMessage,
Hash: status.InfoHash,
Files: lo.Map(status.Files, func(item rpc.FileInfo, index int) downloader.TaskFile {
index, _ = strconv.Atoi(item.Index)