summaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-03-28 17:17:07 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-03-28 17:17:07 -0400
commit0d07bca315d19e6e957072004393138db6f33d3d (patch)
tree3b5b99d003be179ab0bbf0787245b2e8ecc8dc48 /IkiWiki/Setup
parente1eee27fc59dd6126e80ef21e4cc44191119902c (diff)
fix printing of $@, which is clobbered by the call to gettext
problem reported by viric
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r--IkiWiki/Setup/Automator.pm3
1 files changed, 2 insertions, 1 deletions
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;
}
}