mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-16 09:17:11 +00:00
Review comment: Include the error code being returned
This commit is contained in:
parent
4177d8bd3b
commit
35d3fce7a0
@ -2071,11 +2071,11 @@ int S3fsCurl::RequestPerform(void)
|
||||
// Service response codes which are >= 400 && < 500
|
||||
switch(LastResponseCode){
|
||||
case 400:
|
||||
S3FS_PRN_ERR("HTTP response code %ld, Returning EIO, Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
S3FS_PRN_ERR("HTTP response code %ld, returning EIO. Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
return -EIO;
|
||||
|
||||
case 403:
|
||||
S3FS_PRN_ERR("HTTP response code %ld, Returning EPERM, Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
S3FS_PRN_ERR("HTTP response code %ld, returning EPERM. Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
return -EPERM;
|
||||
|
||||
case 404:
|
||||
@ -2084,7 +2084,7 @@ int S3fsCurl::RequestPerform(void)
|
||||
return -ENOENT;
|
||||
|
||||
default:
|
||||
S3FS_PRN_ERR("HTTP response code %ld, Returning EIO, Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
S3FS_PRN_ERR("HTTP response code %ld, returning EIO. Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||
return -EIO;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user