Updated repo/images UX
testing/ogcore-api/pipeline/head This commit looks good Details

pull/20/head
Manuel Aranda Rosales 2025-02-03 11:28:11 +01:00
parent cd94a3065e
commit 2cadfbf1e3
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ abstract class AbstractOgRepositoryController extends AbstractController
} catch (ClientExceptionInterface | ServerExceptionInterface $e) {
$response = $e->getResponse();
$content = json_decode($response->getContent(false), true);
$this->logger->error($content);
$this->logger->error(json_encode($content));
throw new HttpException($response->getStatusCode(), $content['error'] ?? 'An error occurred');
} catch (TransportExceptionInterface $e) {
throw new HttpException(Response::HTTP_INTERNAL_SERVER_ERROR, $e->getMessage());