From 46a6e27347869f699b4cdf2dda57fd5491c98e93 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 16 Aug 2009 13:43:31 -0400 Subject: [PATCH 1/1] fix error message display The gettext call can clear $@ in at least some cases. --- IkiWiki.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index b47da966e..bac48c9a4 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1255,9 +1255,10 @@ sub preprocess ($$$;$$) { ); }; if ($@) { - chomp $@; + my $error=$@; + chomp $error; $ret="[[!$command ". - gettext("Error").": $@"."]]"; + gettext("Error").": $error"."]]"; } } else { -- 2.44.0