{"thread":{"id":"10679","subject":"[PATCH] When exec() fails include the failing command in the error message","startedAt":"2007-11-06T10:54:01Z","lastAt":"2007-11-06T10:54:01Z","messageCount":1,"participants":["Ask Bjørn Hansen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"58522","messageId":"1194346441-20292-1-git-send-email-ask@develooper.com","threadId":"10679","inReplyTo":null,"subject":"[PATCH] When exec() fails include the failing command in the error message","fromName":"Ask Bjørn Hansen","fromEmail":"ask@develooper.com","sentAt":"2007-11-06T10:54:01Z","receivedAt":"2007-11-06T10:54:01Z","isPatch":true,"sender":{"key":"ask@develooper.com","avatar":"https://gravatar.com/avatar/05ce68433216df7d04bb0d82b7d93b11957e2137e6ed23c4b5bc061d78635f2f?d=mp&s=160"},"body":"git-svn occasionally fails with no details as to what went wrong - this should help debug those situations.\n\nSigned-off-by: Ask Bjørn Hansen <ask@develooper.com>\n---\n perl/Git.pm |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/perl/Git.pm b/perl/Git.pm\nindex 3f4080c..dca92c8 100644\n--- a/perl/Git.pm\n+++ b/perl/Git.pm\n@@ -812,7 +812,7 @@ sub _cmd_exec {\n \t\t$self->wc_subdir() and chdir($self->wc_subdir());\n \t}\n \t_execv_git_cmd(@args);\n-\tdie \"exec failed: $!\";\n+\tdie qq[exec \"@args\" failed: $!];\n }\n \n # Execute the given Git command ($_[0]) with arguments ($_[1..])\n-- \n1.5.3.5.561.g140d\n"}]}