From d9cfcb8b5092a4720416b989e2a1627c1bfd1263 Mon Sep 17 00:00:00 2001 From: sayan goswami Date: Fri, 16 Jun 2023 16:39:30 +0530 Subject: [PATCH] Fix all issues --- src/Console/Command/Ci/CiRunCommand.php | 5 +++-- src/Helper/Log/GoogleApiClient.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Console/Command/Ci/CiRunCommand.php b/src/Console/Command/Ci/CiRunCommand.php index 95aab3f07..0418d1c7a 100644 --- a/src/Console/Command/Ci/CiRunCommand.php +++ b/src/Console/Command/Ci/CiRunCommand.php @@ -139,8 +139,9 @@ public function execute(InputInterface $input, OutputInterface $output): int { return StatusCodeEnum::ERROR; } catch (\Exception $e) { - $event = new CiEvent($data); - $this->eventDispatcher->dispatch($event, CiEvent::NAME); +// $event = new CiEvent($data); +// $this->eventDispatcher->dispatch($event, CiEvent::NAME); + print("This should be printed"); return StatusCodeEnum::ERROR; } diff --git a/src/Helper/Log/GoogleApiClient.php b/src/Helper/Log/GoogleApiClient.php index 385d3f2bd..219e164fa 100644 --- a/src/Helper/Log/GoogleApiClient.php +++ b/src/Helper/Log/GoogleApiClient.php @@ -212,7 +212,7 @@ public function getToken(): ?string { } catch (ExceptionInterface $e) { $this->output->comment('An error occurred accessing the auth token from Google API endpoint.\n' . $e->getMessage()); - exit; + return NULL; } }