From: Ian Jackson Date: Sun, 19 Jan 2014 02:21:15 +0000 (+0000) Subject: failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend, in the error message... X-Git-Tag: debian/0.21~1 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=1433215598fbec3c84be732ca5379f6eb236e775;hp=34a6ded2e36eb2a57f16597d8ec520849256f270 failedcmd prints $us, not $_[0] - ie, dgit doesn't pretend, in the error message, to be its child. --- diff --git a/debian/changelog b/debian/changelog index af729416..32c06809 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 94b9ab16..0182b6f9 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)) {