diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-16 13:43:31 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-16 13:43:31 -0400 |
commit | 46a6e27347869f699b4cdf2dda57fd5491c98e93 (patch) | |
tree | 5463aa727bc484bc7e9bef17d36e9226336b0e28 /IkiWiki.pm | |
parent | 4ff3e2a540d154d49dfc70fb89dcc8422f2047e3 (diff) | |
download | ikiwiki-46a6e27347869f699b4cdf2dda57fd5491c98e93.tar ikiwiki-46a6e27347869f699b4cdf2dda57fd5491c98e93.tar.gz |
fix error message display
The gettext call can clear $@ in at least some cases.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 5 |
1 files 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 <span class=\"error\">". - gettext("Error").": $@"."</span>]]"; + gettext("Error").": $error"."</span>]]"; } } else { |