From 9f939415257136c92bb84777f6fa49f9657b84dd Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 2 Mar 2015 16:45:03 -0800 Subject: [PATCH] Add content length to exception message --- .../org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java index f43e03ceab..e6d94e1c78 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java @@ -181,7 +181,7 @@ public class BlobBuilderImpl implements BlobBuilder { @Override public PayloadBlobBuilder contentLength(long contentLength) { - checkArgument(contentLength >= 0, "content length must be non-negative"); + checkArgument(contentLength >= 0, "content length must be non-negative, was: %s", contentLength); payload.getContentMetadata().setContentLength(contentLength); return this; }