#213 changing badprint to print in order to display error message when JSON module is not loaded
This commit is contained in:
parent
cf1f794a70
commit
5bcddc77b8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue