File tree Expand file tree Collapse file tree
src/main/java/com/uid2/shared/vertx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,8 +400,13 @@ private void cloudDownloadBlocking(String s3Path) throws Exception {
400400
401401 downloadFailureTimer .record (java .time .Duration .ofMillis (cloudDownloadTimeMs ));
402402 // Be careful as the s3Path may contain the pre-signed S3 token, so do not log the whole path
403- LOGGER .error ("download error: " + ex .getClass ().getSimpleName ());
404- throw new CloudStorageException ("Download failed" );
403+ LOGGER .error ("Cloud storage download error, exception type: " + ex .getClass ().getSimpleName ());
404+
405+ if (ex instanceof CloudStorageException ) {
406+ throw (CloudStorageException ) ex ;
407+ }
408+ throw new CloudStorageException ("Failed to download file from cloud storage, exception: "
409+ + ex .getClass ().getSimpleName () + ", please check network connectivity and service availability" );
405410 }
406411 }
407412
You can’t perform that action at this time.
0 commit comments