Updated repo/images UX
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
cd94a3065e
commit
2cadfbf1e3
|
@ -52,7 +52,7 @@ abstract class AbstractOgRepositoryController extends AbstractController
|
||||||
} catch (ClientExceptionInterface | ServerExceptionInterface $e) {
|
} catch (ClientExceptionInterface | ServerExceptionInterface $e) {
|
||||||
$response = $e->getResponse();
|
$response = $e->getResponse();
|
||||||
$content = json_decode($response->getContent(false), true);
|
$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');
|
throw new HttpException($response->getStatusCode(), $content['error'] ?? 'An error occurred');
|
||||||
} catch (TransportExceptionInterface $e) {
|
} catch (TransportExceptionInterface $e) {
|
||||||
throw new HttpException(Response::HTTP_INTERNAL_SERVER_ERROR, $e->getMessage());
|
throw new HttpException(Response::HTTP_INTERNAL_SERVER_ERROR, $e->getMessage());
|
||||||
|
|
Loading…
Reference in New Issue