chiark / gitweb /
failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend, in the error message...
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 94b9ab1..0182b6f 100755 (executable)
--- 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)) {