Skip to content

Commit 3ef6b82

Browse files
authored
Add AccessKey to error output (duracloud#205)
1 parent 29b502d commit 3ef6b82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

s3storageprovider/src/main/java/org/duracloud/s3storage/S3StorageProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ private List<Bucket> listAllBuckets() {
148148
try {
149149
return s3Client.listBuckets();
150150
} catch (AmazonClientException e) {
151-
String err = "Could not retrieve list of S3 buckets due to error: "
152-
+ e.getMessage();
151+
String err = "Could not retrieve list of S3 buckets for Access Key '" + accessKeyId +
152+
"' due to error: '" + e.getMessage() + "'";
153153
throw new StorageException(err, e, RETRY);
154154
}
155155
}

0 commit comments

Comments
 (0)