-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(download|scoop-download): Add GitHub issue prompt when the default downloader fails #6539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughAdds explicit error emission "URL is not valid" and then aborts with a structured GitHub-issue message via Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Default as DefaultDownloader
participant Aria2 as aria2 (fallback)
participant Issue as new_issue_msg
participant Abort
User->>Default: request download(URL)
alt download succeeds
Default-->>User: file saved
else download fails / URL invalid
Default-->>User: Emit Error "URL <url> is not valid"
Default->>Issue: new_issue_msg(app, bucket, 'download failed')
Issue-->>Abort: structured issue message
Abort-->>User: abort with issue message
else Default fails -> fallback to aria2
Default->>Aria2: attempt download
alt aria2 succeeds
Aria2-->>User: file saved
else aria2 fails
Aria2-->>User: Emit Error "URL <url> is not valid"
Aria2->>Issue: new_issue_msg(app, bucket, 'download failed')
Issue-->>Abort: structured issue message
Abort-->>User: abort with issue message
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-08-31T01:48:00.222ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…lt downloader fails
Motivation and Context
When Aria2c download fails, it prompts the user to create a GitHub issue, but the default downloader doesn't show any prompt.
Description
This PR makes the following changes:
How Has This Been Tested?
Checklist
developbranch.Summary by CodeRabbit
New Features
Bug Fixes