diff --git a/Command/CompleteUnhandledTransaction.php b/Command/CompleteUnhandledTransaction.php index 3c0265a..3d59522 100644 --- a/Command/CompleteUnhandledTransaction.php +++ b/Command/CompleteUnhandledTransaction.php @@ -60,8 +60,10 @@ public function execute(InputInterface $input, OutputInterface $output) try { $this->appState->setAreaCode(Area::AREA_FRONTEND); $this->finalizeUnhandledOrdersService->finalizeUnhandledOrders(); + return Command::SUCCESS; } catch (\Exception $e) { - $this->logger->error("An error has occured when Finalizing unhandled Satispay Orders: " . $e->getMessage()); + $this->logger->error("An error has occurred when Finalizing unhandled Satispay Orders: " . $e->getMessage()); + return Command::FAILURE; } } @@ -70,7 +72,7 @@ public function executeCron() try { $this->finalizeUnhandledOrdersService->finalizeUnhandledOrders(); } catch (\Exception $e) { - $this->logger->error("An error has occured when Finalizing unhandled Satispay Orders: " . $e->getMessage()); + $this->logger->error("An error has occurred when Finalizing unhandled Satispay Orders: " . $e->getMessage()); } } }