fix replace to_string by stringstream
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m12s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m18s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m25s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 1m19s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m32s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 1m2s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m12s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 1m17s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Failing after 1m5s
linux-x64-gcc / linux-gcc (push) Successful in 1m53s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 1m13s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m30s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m50s

This commit is contained in:
tqcq 2024-01-12 12:41:17 +08:00
parent da95391752
commit 9b661d3e54

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();
}
}
}