Use Data::Dumper when showing full output on a failed parse, as this is more often...
authorGreg Sabino Mullane <[email protected]>
Sat, 1 Nov 2014 16:17:18 +0000 (12:17 -0400)
committerGreg Sabino Mullane <[email protected]>
Sat, 1 Nov 2014 16:17:18 +0000 (12:17 -0400)
check_postgres.pl

index 1893b62d65ee1fbb01396968ca7420f530244192..a075d97c79eb75eebe48ed7dc32cffbc773d0559 100755 (executable)
@@ -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;
                 }
             }