summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-01 21:03:12 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-01 21:03:12 +0000
commit080a8401fcb33fa4a0372db3017edf84fb902868 (patch)
treec962afa0a0cbe99c8a29644a3ac3a0b79a66a677 /lib/MDK/Common
parent0b9eddfb93d15fa1ec21d0191d72b620df4cbccf (diff)
downloadperl-MDK-Common-080a8401fcb33fa4a0372db3017edf84fb902868.tar
perl-MDK-Common-080a8401fcb33fa4a0372db3017edf84fb902868.tar.gz
perl-MDK-Common-080a8401fcb33fa4a0372db3017edf84fb902868.tar.bz2
perl-MDK-Common-080a8401fcb33fa4a0372db3017edf84fb902868.tar.xz
perl-MDK-Common-080a8401fcb33fa4a0372db3017edf84fb902868.zip
(find_index) pinpoint the actual bug (ie the caller)
(all other die should probably be altered the same way)
Diffstat (limited to 'lib/MDK/Common')
-rw-r--r--lib/MDK/Common/Func.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDK/Common/Func.pm b/lib/MDK/Common/Func.pm
index 82811bb..12e8777 100644
--- a/lib/MDK/Common/Func.pm
+++ b/lib/MDK/Common/Func.pm
@@ -258,7 +258,8 @@ sub find_index(&@) {
$_ = $_[$i];
&$f and return $i;
}
- die "find_index failed in @_";
+ use Carp;
+ carp("find_index failed in @_")
}
sub map_each(&%) {
my ($f, %h) = @_;