thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

Proxy error pulling an invalid name #173

Open bluefeet opened 9 years ago

bluefeet commented 9 years ago

This:

pinto pull RJBS/App::CronJob

Produces:

Stratopan is not responding: 502 Proxy Error
Cannot find RJBS/App::Cronjob anywhere

I agree with Pinto that RJBS/App::CronJob is wrong, but the proxy error misleads users into thinking there is some sort of issue with the software and/or stratopan, when in actuality they tried to pull something that does not exist. Any way this could be made a little more user friendly?

thaljef commented 9 years ago

Good point. A 400 [Bad Request] would be better. It should also be able to tell you the target spec is invalid, not just that it couldn't find it. Thanks for bringing this to my attention.

bluefeet commented 9 years ago

Thanks, dude. :)