gleam-lang/gleam

Error message when reverting version that doesn't exist could be improved

Open

#5.709 geöffnet am 13. Mai 2026

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (21.417 Stars) (960 Forks)batch import
good first issuehelp wanted

Beschreibung

When trying to revert a version that doesn't exist we get the following error message:

> gleam hex revert --package birdie --version 1.234234.2
error: Hex API failure

There was a problem when using the Hex API.

This was error from the Hex client library:

    Resource was not found

I think a much better error would look something like this:

> gleam hex revert --package birdie --version 1.234234.2

error: Hex API failure

There is no version 1.234234.2 of the package birdie.

Contributor Guide