From: Joey Hess Date: Sun, 16 Aug 2009 17:43:31 +0000 (-0400) Subject: fix error message display X-Git-Tag: 3.1415926~106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46a6e27347869f699b4cdf2dda57fd5491c98e93;p=ikiwiki.git fix error message display The gettext call can clear $@ in at least some cases. --- 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 {