Skip to content
Snippets Groups Projects
Unverified Commit 9f10e807 authored by jie.wang's avatar jie.wang Committed by GitHub
Browse files

make storage error msg friendly (#714)

parent 48874671
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,10 @@ protected:
case storage::cpp2::ErrorCode::E_FILTER_OUT:
return Status::OK();
default:
auto status = Status::Error("Storage Error: part: %d, error code: %d.",
partId, static_cast<int32_t>(code));
auto status = Status::Error("Storage Error: part: %d, error: %s(%d).",
partId,
storage::cpp2::_ErrorCode_VALUES_TO_NAMES.at(code),
static_cast<int32_t>(code));
LOG(ERROR) << status;
return status;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment