Skip to content

Commit 4c8078c

Browse files
committed
better error message
1 parent f9ba20b commit 4c8078c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blitline-image-client/src/main/java/com/blitline/image/S3Location.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public class S3Location implements Serializable {
3535
public final String bucket, key;
3636

3737
public S3Location(String bucket, String key) {
38-
Validate.isTrue(S3_BUCKET_PATTERN.matcher(bucket).matches(), "bucket parameter is not a valid S3 bucket name");
38+
Validate.isTrue(S3_BUCKET_PATTERN.matcher(bucket).matches(), "bucket parameter '" + bucket
39+
+ "' is not a valid S3 bucket name");
3940
this.bucket = bucket;
4041
this.key = key;
4142
}

0 commit comments

Comments
 (0)