From 4d80b4242055605ee4eef66159e0f8692e92aaeb Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 1 Nov 2014 12:17:18 -0400 Subject: [PATCH] Use Data::Dumper when showing full output on a failed parse, as this is more often than not a complex structure. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2