classes/Tasks/BatchManager.php
public function setErrorMessage($batch, $error) {
        update_option("ilab_media_tools_{$batch}_error_id", $batch.'-error-'.sanitize_title(microtime(true)).'-forever');
        update_option("ilab_media_tools_{$batch}_error_message", $error);
    }
public function setErrorMessage($batch, $error) {
        update_option("ilab_media_tools_{$batch}_error_id", $batch.'-error-'.sanitize_title(microtime(true)).'-forever');
        update_option("ilab_media_tools_{$batch}_error_message", $error);
    }
public function setErrorMessage ( $ batch , $ error ) { update_option ( "ilab_media_tools_{$batch}_error_id" , $ batch . '-error-' . sanitize_title ( microtime ( true ) ) . '-forever' ) ; update_option ( "ilab_media_tools_{$batch}_error_message" , $ error ) ; }
Sets the current error
@param $batch
@param $error
Sets the current error