From 3d69ee0c3033187292229186f5248ec4500bda5a Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 28 Sep 2014 16:12:53 -0700 Subject: [PATCH] Emit response on failed CheckBucket requests This allows callers to diagnose errors like InvalidAccessKeyId and RequestTimeTooSkewed. --- src/curl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/curl.cpp b/src/curl.cpp index 9b70c99..0195335 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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;