diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-01-18 23:34:51 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-01-18 23:34:51 +0000 |
commit | 00ff2e329bed2f77e314381835e3518954ad89d4 (patch) | |
tree | 4d6d3d2ec743f5c4c2516354698aa9f11c9db10a /dgit | |
parent | aca1e5f4659d923c95964157284d1bccd2f56a3e (diff) |
Use failedcmd to report errors when ssh psql fails. Closes:#734281.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -676,7 +676,7 @@ sub sshpsql ($$) { printdebug("$debugprefix>|$_|\n"); push @rows, $_; } - $!=0; $?=0; close P or die "$! $?"; + $!=0; $?=0; close P or failedcmd @cmd; @rows or die; my $nrows = pop @rows; $nrows =~ s/^\((\d+) rows?\)$/$1/ or die "$nrows ?"; |