chiark / gitweb /
failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend, in the error message...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jan 2014 02:21:15 +0000 (02:21 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jan 2014 02:21:15 +0000 (02:21 +0000)
debian/changelog
dgit

index af7294169d499cf6335ed1b4f4936d231be475d7..32c0680978bf773b3dcc7f1941576eac347fbd55 100644 (file)
@@ -9,6 +9,8 @@ dgit (0.21~~iwj) unstable; urgency=medium
 
   Error message improvements:
   * Use failedcmd to report errors when ssh psql fails.  Closes:#734281.
+  * failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend,
+    in the error message, to be its child.
   * Do not report the (irrelevant) $? when madison parsing fails.
 
   Packaging improvements:
diff --git a/dgit b/dgit
index 94b9ab16d287592a9a808d695e7c413524e77011..0182b6f9e4fe7e1842154c2d636320b6bf1d5501 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)) {