#213 changing badprint to print in order to display error message when JSON module is not loaded

This commit is contained in:
root 2016-06-03 11:03:52 +02:00
parent cf1f794a70
commit 5bcddc77b8

View file

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