From: Marius Gavrilescu Date: Sat, 3 Jan 2015 18:25:13 +0000 (+0200) Subject: Make Zeal->sets die if given family does not exist X-Git-Tag: 0.000_003~3 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=inline;h=058f5fcbe63cc474a1b7ae49a3eee811f0e88bc8;p=zeal.git Make Zeal->sets die if given family does not exist --- diff --git a/lib/Zeal.pm b/lib/Zeal.pm index c2ed5d7..5fd8d5a 100644 --- a/lib/Zeal.pm +++ b/lib/Zeal.pm @@ -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}} }