diff --git a/Controller/Adminhtml/Logs/Replay.php b/Controller/Adminhtml/Logs/Replay.php index dbc6932..ffc708e 100644 --- a/Controller/Adminhtml/Logs/Replay.php +++ b/Controller/Adminhtml/Logs/Replay.php @@ -103,8 +103,9 @@ public function execute() $log->setStatus(Status::SUCCESS)->setMessage(''); $this->messageManager->addSuccess(__('The log has been replay successful.')); } else { - $this->messageManager->addError($result['message']); - $log->setStatus(Status::ERROR)->setMessage($result['message']); + $message = __('Cannot replay the log, Please try again later.'); + $this->messageManager->addError($message); + $log->setStatus(Status::ERROR)->setMessage($message); } $log->save(); diff --git a/i18n/en_US.csv b/i18n/en_US.csv index aa394b7..6cbb0cf 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -163,3 +163,4 @@ Replay,Replay "Created Date","Created Date" "Updated Date","Updated Date" Edit,Edit +"Cannot replay the log, Please try again later.","Cannot replay the log, Please try again later."