projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff3e2a
)
fix error message display
author
Joey Hess
<joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:43:31 +0000
(13:43 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:43:31 +0000
(13:43 -0400)
The gettext call can clear $@ in at least some cases.
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index b47da966ed548f03a1ca2c03031fcd8cc084be15..bac48c9a409ecbc0af863d58dbdcede06b89c265 100644
(file)
--- 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 {