improve message if JSON isn't installed

This commit is contained in:
Christian Loos 2016-08-30 15:37:42 +02:00
parent 7215e419df
commit 1c13c66e36

View file

@ -4064,7 +4064,7 @@ sub dump_result {
if ( $opt{'json'} ne 0 ) {
eval {require JSON};
if ($@) {
print "JSON Module is needed.";
print "$bad JSON Module is needed.\n";
exit 1;
}
my $json = JSON->new->allow_nonref;