From 0d07bca315d19e6e957072004393138db6f33d3d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Mar 2010 17:17:07 -0400 Subject: fix printing of $@, which is clobbered by the call to gettext problem reported by viric --- IkiWiki/Setup/Automator.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Setup') 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; } } -- cgit v1.2.3