From 537cf000b2b2626e596304c11f9208c512a8f4e1 Mon Sep 17 00:00:00 2001 From: salim kanoun Date: Sat, 10 Jun 2023 10:09:06 +0200 Subject: [PATCH] small --- GaelO2/app/GaelO/Adapters/HttpClientAdapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GaelO2/app/GaelO/Adapters/HttpClientAdapter.php b/GaelO2/app/GaelO/Adapters/HttpClientAdapter.php index d2cc43bf5..b4389fad4 100644 --- a/GaelO2/app/GaelO/Adapters/HttpClientAdapter.php +++ b/GaelO2/app/GaelO/Adapters/HttpClientAdapter.php @@ -72,12 +72,12 @@ public function requestUploadArrayDicom(string $method, string $uri, array $file 'rejected' => function (RequestException $exception, $index) { $reason = "Error sending dicom to orthanc"; if ($exception->hasResponse()) { - $reason = $exception->getResponse()->getReasonPhrase(); + $reason = $exception->getResponse()->getStatusCode(); } else { $reason = $exception->getMessage(); } // this is delivered each failed request - Log::error('DICOM Import Failed in Orthanc Temporary ' + $reason); + Log::error('DICOM Import Failed in Orthanc Temporary: ' + $reason); }, ]);