From: Ian Jackson Date: Mon, 27 Jul 2015 14:26:06 +0000 (+0100) Subject: When exec fails, always print the program name in the error message. X-Git-Tag: debian/1.1~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=0711cc9a16065c5e69406eb9d182cc686600a366 When exec fails, always print the program name in the error message. --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index fce2ceb6..ac44b9ab 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -196,7 +196,7 @@ sub failedcmd { sub cmdoutput_errok { die Dumper(\@_)." ?" if grep { !defined } @_; debugcmd "|",@_; - open P, "-|", @_ or die $!; + open P, "-|", @_ or die "$_[0] $!"; my $d; $!=0; $?=0; { local $/ = undef; $d =

; } diff --git a/debian/changelog b/debian/changelog index 6ef374b8..7537ba2c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -58,6 +58,7 @@ dgit (1.1~~) unstable; urgency=low pass -nc. * Also suppress spurious runs of the clean target when building using git-buildpackage. + * When exec fails, always print the program name in the error message. Infrastructure: * Infrastructure: Get mirroring right for fresh repos of existing