diff --git a/src/Service/ZammadService.php b/src/Service/ZammadService.php index 54b6270..8ca826d 100644 --- a/src/Service/ZammadService.php +++ b/src/Service/ZammadService.php @@ -126,7 +126,7 @@ public function export( "* Error while dumping ticket " . $ticket->getID() . ' : ' . $e->getMessage() ); $this->output->writeln("Export incomplete!"); - exit; + exit(1); } if ($this->verbose) { @@ -181,7 +181,7 @@ protected function getTickets(int $page, string $search = ''): array $resp = $this->client->getLastResponse(); if (!$resp || $resp->getStatusCode() >= 400) { $this->output->writeln("Error while fetching ticket. Maybe an incorrect or missing authorization key?"); - return []; + exit(1); } return $result;