This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 648e5dd50e5 branch-3.0: [fix](s3) improve error msg #45360 (#45431)
648e5dd50e5 is described below
commit 648e5dd50e5b1c016b5f2a6c8edfa4ae1c7b33b9
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 20 11:56:48 2024 +0800
branch-3.0: [fix](s3) improve error msg #45360 (#45431)
Cherry-picked from #45360
Co-authored-by: Socrates <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]