erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

Fix error reporting for bad requirements #54

Closed Licenser closed 8 years ago

Licenser commented 8 years ago

This patch fixes the error output when dependencies can't be resolve on hex.pm the output looks like this:

===> Status Code: Validation failed (422)
Hex Error: Validation error(s)
    Requirements could not be computed
basho_exometer_core
--------------------
Failed to use "lager" (version 3.0.1) because
  basho_exometer_core (version 1.0.1) requires ~>3.0.0
  cuttlefish (version 2.0.7) requires 3.0.2
  rebar.config requires ~>3.0.0

Failed to use "lager" (version 3.0.2) because
  basho_exometer_core (version 1.0.1) requires ~>3.0.0
  cuttlefish (version 2.0.7) requires 3.0.2
  rebar.config requires ~>3.0.0
  riak_ensemble_ng (version 2.2.0) requires 3.2.1