aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-16 13:43:31 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-16 13:43:31 -0400
commit46a6e27347869f699b4cdf2dda57fd5491c98e93 (patch)
tree5463aa727bc484bc7e9bef17d36e9226336b0e28 /IkiWiki.pm
parent4ff3e2a540d154d49dfc70fb89dcc8422f2047e3 (diff)
downloadikiwiki-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.pm5
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 {