fix cron job bug

fix cron job bug and insert the cron job error message into
fd_cron_error_log table