From 5bcddc77b8dc03444fc0ff033e9fe00496c7171e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Jun 2016 11:03:52 +0200 Subject: [PATCH] #213 changing badprint to print in order to display error message when JSON module is not loaded --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 6a89730..f278489 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -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;