summaryrefslogtreecommitdiff
path: root/Debian/Dgit.pm
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-27 15:26:06 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-27 15:26:06 +0100
commit0711cc9a16065c5e69406eb9d182cc686600a366 (patch)
tree09210a08277e8b2bac9ca5cbbde06516074398e3 /Debian/Dgit.pm
parent9c93adb7d24891e392a1a0c3ad13ccd5fb57b6f1 (diff)
When exec fails, always print the program name in the error message.
Diffstat (limited to 'Debian/Dgit.pm')
-rw-r--r--Debian/Dgit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm
index fce2ceb..ac44b9a 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 = <P>; }