git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] When exec() fails include the failing command in the error message
@ 2007-11-06 10:54 Ask Bjørn Hansen
  0 siblings, 0 replies; only message in thread
From: Ask Bjørn Hansen @ 2007-11-06 10:54 UTC (permalink / raw)
  To: git; +Cc: Ask Bjørn Hansen

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>
---
 perl/Git.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/perl/Git.pm b/perl/Git.pm
index 3f4080c..dca92c8 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..])
-- 
1.5.3.5.561.g140d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-06 11:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-06 10:54 [PATCH] When exec() fails include the failing command in the error message Ask Bjørn Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).