This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 06efb40f33b [fix](s3) improve error msg (#45360)
06efb40f33b is described below

commit 06efb40f33b8e1b48ca50cca500b1afd866ad69e
Author: Socrates <suyit...@selectdb.com>
AuthorDate: Sun Dec 15 11:24:41 2024 +0800

    [fix](s3) improve error msg (#45360)
---
 be/src/io/fs/err_utils.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/be/src/io/fs/err_utils.cpp b/be/src/io/fs/err_utils.cpp
index 6552d454824..e9bed7f5887 100644
--- a/be/src/io/fs/err_utils.cpp
+++ b/be/src/io/fs/err_utils.cpp
@@ -122,13 +122,13 @@ Status s3fs_error(const Aws::S3::S3Error& err, 
std::string_view msg) {
     using namespace Aws::Http;
     switch (err.GetResponseCode()) {
     case HttpResponseCode::NOT_FOUND:
-        return Status::Error<NOT_FOUND, false>("{}: {} {} type={}, 
request_id={}", msg,
-                                               err.GetExceptionName(), 
err.GetMessage(),
+        return Status::Error<NOT_FOUND, false>("{}: {} {} code=NOT_FOUND, 
type={}, request_id={}",
+                                               msg, err.GetExceptionName(), 
err.GetMessage(),
                                                err.GetErrorType(), 
err.GetRequestId());
     case HttpResponseCode::FORBIDDEN:
-        return Status::Error<PERMISSION_DENIED, false>("{}: {} {} type={}, 
request_id={}", msg,
-                                                       err.GetExceptionName(), 
err.GetMessage(),
-                                                       err.GetErrorType(), 
err.GetRequestId());
+        return Status::Error<PERMISSION_DENIED, false>(
+                "{}: {} {} code=FORBIDDEN, type={}, request_id={}", msg, 
err.GetExceptionName(),
+                err.GetMessage(), err.GetErrorType(), err.GetRequestId());
     default:
         return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
                 "{}: {} {} code={} type={}, request_id={}", msg, 
err.GetExceptionName(),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to