From ac724311950fe9a8f4fd42c89cab1cb1e20dd403 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 20 Jan 2019 10:07:58 +0000 Subject: [PATCH] Added detail error message when HTTP 301/307 status --- src/curl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/curl.cpp b/src/curl.cpp index 7c7a294..0acc4c9 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -2085,7 +2085,9 @@ int S3fsCurl::RequestPerform(void) // Service response codes which are >= 300 && < 500 switch(LastResponseCode){ case 301: + case 307: S3FS_PRN_ERR("HTTP response code 301(Moved Permanently: also happens when bucket's region is incorrect), returning EIO. Body Text: %s", (bodydata ? bodydata->str() : "")); + S3FS_PRN_ERR("The options of url and endpoint may be useful for solving, please try to use both options."); return -EIO; case 400: