Skip to content

Commit

Permalink
NTR: delete more dies (#398)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik committed Jan 24, 2024
1 parent 66422a9 commit f5bf68a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Controllers/Backend/MollieConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public function testKeysAction()
'data' => $logData,
]
);

die($backendOutput);
echo $backendOutput;
ob_clean();
}

/**
Expand Down
7 changes: 4 additions & 3 deletions Controllers/Backend/MolliePayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function updateAction()
$this->logger->info($importCount . ' Payment Methods have been successfully imported in Backend');

$message = sprintf('%d Payment Methods were imported/updated', $importCount);

die($message);
echo $message;
ob_clean();
} catch (\Exception $e) {
$this->logger->error(
'Error when importing payment methods in Backend',
Expand All @@ -66,7 +66,8 @@ public function updateAction()
);

http_response_code(500);
die($e->getMessage());
echo $e->getMessage();
ob_clean();
}
}

Expand Down

0 comments on commit f5bf68a

Please sign in to comment.