From: Greg Sabino Mullane Date: Sat, 1 Nov 2014 16:17:18 +0000 (-0400) Subject: Use Data::Dumper when showing full output on a failed parse, as this is more often... X-Git-Tag: 2.22.0~18 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=4d80b4242055605ee4eef66159e0f8692e92aaeb;p=check_postgres.git Use Data::Dumper when showing full output on a failed parse, as this is more often than not a complex structure. --- 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; } }