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:
}
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)) {