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 <ask@develooper.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ask Bjørn Hansen committed
Nov 6, 2007 at 02:54 UTC
6aaa65da20a8f0a4c95834f73f0b20d5dc3aa3c6
1 file changed
+1
-1
perl/Git.pm
+1
-1
@@ -812,7 +812,7 @@ sub _cmd_exec {
812
$self->wc_subdir() and chdir($self->wc_subdir());
813
}
814
_execv_git_cmd(@args);
815
- die "exec failed: $!";
815
+ die qq[exec "@args" failed: $!];
816
}
817
818
# Execute the given Git command ($_[0]) with arguments ($_[1..])