gleam-lang/gleam

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

已關閉

#5,710 建立於 2026年5月13日

 (1 則留言) (0 個反應) (0 位負責人)Rust (960 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (21,417 顆星)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

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

貢獻者指南