From 058f5fcbe63cc474a1b7ae49a3eee811f0e88bc8 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 3 Jan 2015 20:25:13 +0200 Subject: [PATCH] Make Zeal->sets die if given family does not exist --- lib/Zeal.pm | 1 + 1 file changed, 1 insertion(+) 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}} } -- 2.39.2