From c2991d974df90472b3d0aeaf2d9151d434a06835 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 30 Mar 2012 03:10:55 +0530 Subject: [PATCH] the 'eval' in run() needed to die on error --- src/Gitolite/Triggers.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gitolite/Triggers.pm b/src/Gitolite/Triggers.pm index 15c2cdf..e4d09ec 100644 --- a/src/Gitolite/Triggers.pm +++ b/src/Gitolite/Triggers.pm @@ -22,6 +22,7 @@ sub run { $module = "Gitolite::Triggers::$module" if $module !~ /^Gitolite::/; eval "require $module"; + _die "$@" if $@; my $subref; eval "\$subref = \\\&$module" . "::" . "$sub"; _die "module '$module' does not exist or does not have sub '$sub'" unless ref($subref) eq 'CODE';