Skip to content

Commit 4752cbd

Browse files
committed
Fixed error message
1 parent 788acbc commit 4752cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/uid2/shared/cloud/CloudStorageS3.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)