X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FZeal.pm;h=b5cc99e83b5eb7fd50712c63641b4c377a29235d;hb=1a477fa4fdc40fd4142e2a01ff12865381cd7d8e;hp=c2ed5d7bcf8207aef0dbb6e173e5269fa7e2943a;hpb=795a1ad18a72354f8ad601a31c85481de7b196c0;p=zeal.git diff --git a/lib/Zeal.pm b/lib/Zeal.pm index c2ed5d7..b5cc99e 100644 --- a/lib/Zeal.pm +++ b/lib/Zeal.pm @@ -5,7 +5,7 @@ use strict; use warnings; use re '/s'; -our $VERSION = '0.000_002'; +our $VERSION = '0.001'; use File::Spec::Functions qw/catfile/; @@ -41,6 +41,7 @@ sub add { sub sets { my ($self, $family) = @_; return map { @$_ } values %{$self->{sets}} unless $family; + die "No docsets in family '$family'\n" unless $self->{sets}{$family}; @{$self->{sets}{$family}} } @@ -120,7 +121,7 @@ Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2014 by Marius Gavrilescu +Copyright (C) 2014-2015 by Marius Gavrilescu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.1 or,