chshersh / tool-sync

🧰 Download pre-built binaries of all your favourite tools with a single command
https://crates.io/crates/tool-sync
Mozilla Public License 2.0
69 stars 16 forks source link

[#128] Uses RepoError::NotFound when fetch_release_info returns 404 #135

Closed crudiedo closed 1 year ago

crudiedo commented 1 year ago

Resolves #128

This PR adds a new error RepoError::NotFound and uses it when fetch_release_info returns 404.

The error message depends on the tag, and could be either ❌  bottom The clementtsang/bottomx doesn't exist or tags/0.66.3 was not found.

or

❌  bottom The clementtsang/bottomx doesn't exist or has no releases.

if the tag is latest.

Additional tasks