projects
/
zeal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04ee5ba
)
Make Zeal->sets die if given family does not exist
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 3 Jan 2015 18:25:13 +0000
(20:25 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 3 Jan 2015 18:25:13 +0000
(20:25 +0200)
lib/Zeal.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Zeal.pm
b/lib/Zeal.pm
index c2ed5d7bcf8207aef0dbb6e173e5269fa7e2943a..5fd8d5a4c706bf5f03cf6212bf391cef14f01200 100644
(file)
--- 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}}
}
This page took
0.010144 seconds
and
4
git commands to generate.