Skip to content

Commit

Permalink
When exec() fails include the failing command in the error message
Browse files Browse the repository at this point in the history
git-svn occasionally fails with no details as to what went wrong - this should help debug those situations.

Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ask Bjørn Hansen authored and Junio C Hamano committed Nov 7, 2007
1 parent f49439e commit 6aaa65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/Git.pm
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ sub _cmd_exec {
$self->wc_subdir() and chdir($self->wc_subdir());
}
_execv_git_cmd(@args);
die "exec failed: $!";
die qq[exec "@args" failed: $!];
}

# Execute the given Git command ($_[0]) with arguments ($_[1..])
Expand Down

0 comments on commit 6aaa65d

Please sign in to comment.