From 6aaa65da20a8f0a4c95834f73f0b20d5dc3aa3c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Tue, 6 Nov 2007 02:54:01 -0800 Subject: [PATCH] When exec() fails include the failing command in the error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- perl/Git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..]) -- 2.30.2