summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2014-11-01 16:17:18 +0000
committerGreg Sabino Mullane2014-11-01 16:17:18 +0000
commit4d80b4242055605ee4eef66159e0f8692e92aaeb (patch)
tree9a84df77171d5f5979b86abf045b0186b83a688a /check_postgres.pl
parent97e9af12d8f7d8d1b24c81f6acea514b0fbbe444 (diff)
Use Data::Dumper when showing full output on a failed parse, as this is more often than not a complex structure.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 1893b62d6..a075d97c7 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -2500,7 +2500,7 @@ sub run_command {
warn "Postgres version: $v\n";
}
## This is a serious parsing fail, so it can be helpful to have the whole enchilada:
- warn "Full output: $db->{slurp}\n\n";
+ warn 'Full output: ' . (Dumper $db->{slurp}) . "\n\n";
exit 1;
}
}