hexpm / hex

Package manager for the Erlang ecosystem.
https://hex.pm
969 stars 184 forks source link

Match docs tarball error to package error #980

Closed jjcarstens closed 1 year ago

jjcarstens commented 1 year ago

This helps the cases where the package size may be fine, but the documentation is too large (usually because assets like pictures, gifs, etc have been included). Previously, it would report as too_big, but that excludes how big the size is and if it was too big compressed or uncompressed.

This changes the create_docs/2 error to match the create/2 error reporting the reason for error and the size that was calculated

jjcarstens commented 1 year ago

Just realized this file says it is vendor from hex_core, so I moved it over there 🤦🏼

https://github.com/hexpm/hex_core/pull/138