Catch SemVer Exceptions #5

theory opened this Issue Apr 22, 2011 · 1 comment


None yet
1 participant

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

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


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