diff --git a/be/src/io/fs/err_utils.cpp b/be/src/io/fs/err_utils.cpp index aaf268c1fcdfc3..e9bed7f5887dc3 100644 --- a/be/src/io/fs/err_utils.cpp +++ b/be/src/io/fs/err_utils.cpp @@ -122,12 +122,12 @@ 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("{}: {} {} code={NOT_FOUND} type={}, request_id={}", + return Status::Error("{}: {} {} code=NOT_FOUND, type={}, request_id={}", msg, err.GetExceptionName(), err.GetMessage(), err.GetErrorType(), err.GetRequestId()); case HttpResponseCode::FORBIDDEN: return Status::Error( - "{}: {} {} code={FORBIDDEN} type={}, request_id={}", msg, err.GetExceptionName(), + "{}: {} {} code=FORBIDDEN, type={}, request_id={}", msg, err.GetExceptionName(), err.GetMessage(), err.GetErrorType(), err.GetRequestId()); default: return Status::Error(