From 1433215598fbec3c84be732ca5379f6eb236e775 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Jan 2014 02:21:15 +0000 Subject: failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend, in the error message, to be its child. --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index 94b9ab1..0182b6f 100755 --- a/dgit +++ b/dgit @@ -332,7 +332,7 @@ sub printcmd { } sub failedcmd { - { local ($!); printcmd \*STDERR, "$_[0]: failed command:", @_ or die $!; }; + { local ($!); printcmd \*STDERR, "$us: failed command:", @_ or die $!; }; if ($!) { fail "failed to fork/exec: $!"; } elsif (!($? & 0xff)) { -- cgit v1.2.3