Review comment: Include the error code being returned

This commit is contained in:
root 2018-07-06 05:14:32 -04:00
parent 4177d8bd3b
commit 35d3fce7a0

View File

@ -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;