fix error message display

The gettext call can clear $@ in at least some cases.
master
Joey Hess 2009-08-16 13:43:31 -04:00
parent 4ff3e2a540
commit 46a6e27347
1 changed files with 3 additions and 2 deletions

View File

@ -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 {