mirror of https://github.com/apache/jclouds.git
Add content length to exception message
This commit is contained in:
parent
fb1f3b9dfd
commit
9f93941525
|
@ -181,7 +181,7 @@ public class BlobBuilderImpl implements BlobBuilder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PayloadBlobBuilder contentLength(long contentLength) {
|
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);
|
payload.getContentMetadata().setContentLength(contentLength);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue