Skip to content

Commit

Permalink
kill typeerror catch
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 19, 2024
1 parent a8decfd commit 8f34804
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ public function onConsoleError(ConsoleErrorEvent $event): void
}
}

if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}

if (!empty($this->helpMessages)) {
$this->helpMessages[0] = '<options=bold>How to fix it:</> ' . $this->helpMessages[0];
}
Expand Down

0 comments on commit 8f34804

Please sign in to comment.