[Glacier] Add proper string formatting for ErrorCodes.

This commit is contained in:
Drew Galbraith 2023-11-22 12:17:10 -08:00
parent a93aa3a426
commit 9f0e87b51d
5 changed files with 51 additions and 2 deletions

View file

@ -57,7 +57,7 @@ void StrFormatValue(StringBuilder& builder, const uint64_t& value,
template <>
void StrFormatValue(StringBuilder& builder, const ErrorCode& value,
StringView opts) {
StrFormatValue(builder, static_cast<uint64_t>(value), opts);
StrFormatValue(builder, ErrorCodeToStr(value), opts);
}
template <>