Log somewhat more verbose error messages when the sql_command binary is not found...
[freeradius.git] / dialup_admin / bin / truncate_radacct
index 3a09262..a6e25b9 100755 (executable)
@@ -26,7 +26,7 @@ while(<CONF>){
 close CONF;
 
 die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq '');
-die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd);
+die "sql command '$sqlcmd' not found or does not seem to be executable\n" if (! -x $sqlcmd);
 
 if ($sql_type eq 'mysql'){
        $sql_password = ($sql_password eq '') ? '' : "-p$sql_password";