From: Ask Bjørn Hansen Date: Tue, 6 Nov 2007 10:54:01 +0000 (-0800) Subject: When exec() fails include the failing command in the error message X-Git-Tag: v1.5.3.6~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6aaa65da20a8f0a4c95834f73f0b20d5dc3aa3c6;p=git.git When exec() fails include the failing command in the error message 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 Signed-off-by: Junio C Hamano --- diff --git a/perl/Git.pm b/perl/Git.pm index 3f4080cbf..dca92c8ad 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -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..])