classes/Tasks/BatchManager.php
public function displayAnyErrors($batch) {
        $error = $this->errorMessage($batch);

        if (!empty($error)) {
            NoticeManager::instance()->displayAdminNotice('error', $error, true, $this->errorMessageId($batch));
        }
    }
public function displayAnyErrors($batch) {
        $error = $this->errorMessage($batch);

        if (!empty($error)) {
            NoticeManager::instance()->displayAdminNotice('error', $error, true, $this->errorMessageId($batch));
        }
    }
public function displayAnyErrors ( $ batch ) { $ error = $ this -> errorMessage ( $ batch ) ; if ( ! empty ( $ error ) ) { NoticeManager :: instance ( ) -> displayAdminNotice ( 'error' , $ error , true , $ this -> errorMessageId ( $ batch ) ) ; } }
Display any error for a batch
@param $batch
Display any error for a batch