]> iEval git - zeal.git/commitdiff
Make Zeal->sets die if given family does not exist
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 3 Jan 2015 18:25:13 +0000 (20:25 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 3 Jan 2015 18:25:13 +0000 (20:25 +0200)
lib/Zeal.pm

index c2ed5d7bcf8207aef0dbb6e173e5269fa7e2943a..5fd8d5a4c706bf5f03cf6212bf391cef14f01200 100644 (file)
@@ -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}}
 }
 
This page took 0.028628 seconds and 4 git commands to generate.