gleam-lang/gleam

Error message for inserting the wrong local Hex API key could be improved

Geschlossen

#5.710 geöffnet am 13.05.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (960 Forks)batch import
good first issuehelp wanted

Repository-Metriken

Stars
 (21.417 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 10T 19h) (69 gemergte PRs in 30 T)

Beschreibung

Right now when typing the wrong Hex API key (for any command that requires it) shows the following error message:

error: Failed to decrypt local Hex API key

Unable to decrypt the local Hex API key with the given password.
The error from the encryption library was:

    unable to decrypt message: Decryption failed

It's telling me the same thing three times: "failed to decrypt local hex api key", "unable to decrypt the local hex api key", "unable to decrypt message: decryption failed". It's also telling me about some "encryption library" I don't really care about as a user! I think a better error message should be more straight to the point:

error: Failed to decrypt local Hex API key

Unable to decrypt the local Hex API key with the given password.

Or maybe add an hint if you feel like people would need further direction:

error: Failed to decrypt local Hex API key

Unable to decrypt the local Hex API key with the given password.
Hint: try again and make sure to typed the correct local password

Or something along those lines

Contributor Guide