Skip to content

Commit

Permalink
Emit response on failed CheckBucket requests
Browse files Browse the repository at this point in the history
This allows callers to diagnose errors like InvalidAccessKeyId and
RequestTimeTooSkewed.
  • Loading branch information
gaul committed Sep 28, 2014
1 parent c88a5f3 commit 3d69ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/curl.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 3d69ee0

Please sign in to comment.