From 35d3fce7a03e89c43c409689e69a7643e2c52585 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Jul 2018 05:14:32 -0400 Subject: [PATCH] Review comment: Include the error code being returned --- src/curl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index c9e2394..120483a 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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;