localize user-visible warnings and tack on missing newlines

master
Joey Hess 2009-09-11 18:22:06 -04:00
parent c6ac7409bd
commit 3c80557054
1 changed files with 2 additions and 2 deletions

View File

@ -30,10 +30,10 @@ sub postrefresh () {
chdir($config{destdir}) || error("chdir: $!");
system $config{rsync_command};
if ($? == -1) {
warn("failed to execute rsync_command: $!");
warn(sprintf(gettext("failed to execute rsync_command: %s"), $!))."\n";
}
elsif ($? != 0) {
warn(sprintf("rsync_command exited %d", $? >> 8));
warn(sprintf(gettext("rsync_command exited %d"), $? >> 8))."\n";
}
}
}