From: Joey Hess Date: Sun, 28 Mar 2010 21:17:07 +0000 (-0400) Subject: fix printing of $@, which is clobbered by the call to gettext X-Git-Tag: 3.20100403~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d07bca315d19e6e957072004393138db6f33d3d;p=ikiwiki.git fix printing of $@, which is clobbered by the call to gettext problem reported by viric --- diff --git a/IkiWiki/Setup/Automator.pm b/IkiWiki/Setup/Automator.pm index e9a572450..38e0d4422 100644 --- a/IkiWiki/Setup/Automator.pm +++ b/IkiWiki/Setup/Automator.pm @@ -124,9 +124,10 @@ sub import (@) { IkiWiki::run_hooks(checkconfig => sub { shift->() }); }; if ($@) { + my $err=$@; print STDERR sprintf(gettext("** Disabling plugin %s, since it is failing with this message:"), $plugin)."\n"; - print STDERR "$@\n"; + print STDERR "$err\n"; push @{$bakconfig{disable_plugins}}, $plugin; } }