gleam-lang/gleam

Improve error message for a file being too large when publishing to Hex

Offen

#5.744 geöffnet am 23.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

Similar to https://github.com/gleam-lang/gleam/issues/5708 which is for making api_revert_package_response error msg nicer

api_publish_package_response currently dumps the raw json eg

hexpm1

assuming https://github.com/gleam-lang/gleam/issues/5708 gets https://github.com/gleam-lang/gleam/pull/5728 and adds hexpm::ApiError::ValidationError that same type could be used for the api_publish_package_response case StatusCode::UNPROCESSABLE_ENTITY https://github.com/gleam-lang/gleam/blob/d09b84d289458b39caa304496a02e7412643bcf0/hexpm/src/lib.rs#L542

Contributor Guide