Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Jun 10, 2023
1 parent 993ac81 commit 537cf00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GaelO2/app/GaelO/Adapters/HttpClientAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
]);

Expand Down

0 comments on commit 537cf00

Please sign in to comment.