mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-26 15:18:27 +00:00
Emit response on failed CheckBucket requests
This allows callers to diagnose errors like InvalidAccessKeyId and RequestTimeTooSkewed.
This commit is contained in:
parent
c88a5f38be
commit
3d69ee0c30
@ -2396,6 +2396,9 @@ int S3fsCurl::CheckBucket(void)
|
|||||||
type = REQTYPE_CHKBUCKET;
|
type = REQTYPE_CHKBUCKET;
|
||||||
|
|
||||||
int result = RequestPerform();
|
int result = RequestPerform();
|
||||||
|
if (result != 0) {
|
||||||
|
DPRN("Check bucket failed, S3 response: %s", (bodydata ? bodydata->str() : ""));
|
||||||
|
}
|
||||||
delete bodydata;
|
delete bodydata;
|
||||||
bodydata = NULL;
|
bodydata = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user