thaljef / Pinto

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

Better error message when root path is invalid #199

Closed thaljef closed 9 years ago

thaljef commented 9 years ago

When invoking pinto add on a repo that doesn't exist, the error message is cryptic and unhelpful:

pinto -r NOWHERE add Some-Dist.tar.gz 
DBIx::Class::Storage::DBI::dbh(): DBI Connection failed: DBI connect('TEST/.pinto/db/pinto.db','',...) failed: unable to open database file at /Users/jeff/opt/local/pinto/lib/perl5/DBIx/Class/Storage/DBI.pm line 1390. at /Users/jeff/opt/local/pinto/lib/perl5/Pinto/Database.pm line 64

Somewhere, I'm sure we have code that does a sanity check on the repo and spits out better error messages. We probably just need to call it a bit earlier.

thaljef commented 9 years ago

This issue was resolved and released in Pinto-0.09998.