File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/uid2/shared/cloud Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ public InputStream download(String cloudPath) throws CloudStorageException {
137137 return obj .getObjectContent ();
138138 } catch (AmazonS3Exception e ) {
139139 if (e .getErrorCode ().equals ("NoSuchKey" )) {
140- throw new CloudStorageException ("The specified key does not exist: " + e .getClass ().getSimpleName () + ": " + bucket + ( verbose ? " - " + e . getMessage () : "" ) );
140+ throw new CloudStorageException ("The specified key does not exist: " + e .getClass ().getSimpleName () + ": " + bucket );
141141 } else {
142- throw new CloudStorageException ("s3 get error: " + e .getClass ().getSimpleName () + ": " + bucket );
142+ throw new CloudStorageException ("s3 get error: " + e .getClass ().getSimpleName () + ": " + bucket + ( verbose ? " - " + e . getMessage () : "" ) );
143143 }
144144 } catch (Throwable t ) {
145145 // Do not log the message or the original exception as that may contain the pre-signed url
You can’t perform that action at this time.
0 commit comments