Catch SemVer Exceptions #5

Closed
theory opened this Issue Apr 22, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Owner

theory commented Apr 22, 2011

Seen when a file was uploaded missing the "version" key in the "provides" hash:

Invalid version format (version required) at /usr/local/lib/perl5/site_perl/5.12.2/Plack/Middleware/StackTrace.pm line 22
    Plack::Middleware::StackTrace::__ANON__('Invalid version format (version required) at /usr/local/lib/perl5/site_perl/5.12.1/SemVer.pm line 63.^J') called at /usr/local/lib/perl5/site_perl/5.12.1/SemVer.pm line 63
    SemVer::declare('SemVer', undef) called at lib/PGXN/Manager/Distribution.pm line 196
    PGXN::Manager::Distribution::normalize('PGXN::Manager::Distribution=HASH(0x9235248)') called at lib/PGXN/Manager/Distribution.pm line 56

So we need to catch that exception and try to tell the user something useful.

Owner

theory commented Apr 23, 2011

Done in 6240bb.

@theory theory closed this Apr 23, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment