Skip to content

Commit

Permalink
capture throwable instead of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Jun 17, 2024
1 parent 7698371 commit 27c5b00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use App\GaelO\Services\TusService;
use App\GaelO\Services\VisitService;
use App\GaelO\Util;
use Exception;
use Throwable;
use ZipArchive;

class ValidateDicomUpload
Expand Down Expand Up @@ -191,7 +191,7 @@ public function execute(ValidateDicomUploadRequest $validateDicomUploadRequest,
$validateDicomUploadResponse->status = $e->statusCode;
$validateDicomUploadResponse->statusText = $e->statusText;
$validateDicomUploadResponse->body = $e->getErrorBody();
} catch (Exception $e) {
} catch (Throwable $e) {

$this->handleImportException(
$e->getMessage(),
Expand Down

0 comments on commit 27c5b00

Please sign in to comment.