Emit response on failed CheckBucket requests

This allows callers to diagnose errors like InvalidAccessKeyId and
RequestTimeTooSkewed.
This commit is contained in:
Andrew Gaul 2014-09-28 16:12:53 -07:00
parent c88a5f38be
commit 3d69ee0c30

View File

@ -2396,6 +2396,9 @@ int S3fsCurl::CheckBucket(void)
type = REQTYPE_CHKBUCKET;
int result = RequestPerform();
if (result != 0) {
DPRN("Check bucket failed, S3 response: %s", (bodydata ? bodydata->str() : ""));
}
delete bodydata;
bodydata = NULL;