Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: improve TOPS report error handling #54

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions module/Olcs/src/Controller/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public function topsreportAction()
'refreshToken' => $session['RefreshToken']]
);
$response = $this->handleCommand($redirectCmd);

if (!$response->isOk()) {
$this->flashMessenger()->addErrorMessage($response->getResult()['messages'][0]);
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
return $this->redirect()->toRoute('dashboard', [], [], true);
}

$messages = $response->getResult()['messages'];

$view = new \Laminas\View\Model\ViewModel();
Expand Down
Loading