feat add status and status_or #4

Merged
tqcq merged 5 commits from feat/add_status into develop 2024-01-12 14:05:04 +08:00
Showing only changes of commit 9b661d3e54 - Show all commits

View File

@ -66,9 +66,11 @@ StatusCodeToString(StatusCode code)
return "UNAVAILABLE";
case StatusCode::kDataLoss:
return "DATA_LOSS";
default:
return "UNEXPECTED_STATUS_CODE="
+ std::to_string(static_cast<int>(code));
default: {
std::stringstream ss;
ss << "UNEXPECTED_STATUS_CODE=" << static_cast<int>(code);
return ss.str();
}
}
}