Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl12
1 files changed, 6 insertions, 6 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 2dd4862175..175da07d94 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -219,8 +219,8 @@ sub system_or_msg {
my $exit_code = $? >> 8;
return unless $signalled or $exit_code;
- return sprintf(__("failed to run command %s, died with code %d"),
- "@$args", $exit_code);
+ return sprintf(__("fatal: command '%s' died with exit code %d"),
+ $args->[0], $exit_code);
}
sub system_or_die {
@@ -1964,7 +1964,8 @@ sub validate_patch {
}
if ($hook_error) {
die sprintf(__("fatal: %s: rejected by sendemail-validate hook\n" .
- "warning: no patches were sent\n"), $fn);
+ "%s\n" .
+ "warning: no patches were sent\n"), $fn, $hook_error);
}
}
@@ -1975,9 +1976,8 @@ sub validate_patch {
or die sprintf(__("unable to open %s: %s\n"), $fn, $!);
while (my $line = <$fh>) {
if (length($line) > 998) {
- die sprintf(__("fatal: %s: %d: patch contains a line longer than 998 characters\n" .
- "warning: no patches were sent\n"),
- $fn, $.);
+ die sprintf(__("fatal: %s:%d is longer than 998 characters\n" .
+ "warning: no patches were sent\n"), $fn, $.);
}
}
}