| 356 | } |
| 357 | |
| 358 | std::string GetStackedErrorString(const std::shared_ptr<StackedError>& error) { |
| 359 | const auto& maybe_error = TRY(FormatErrorStr(error)); |
| 360 | const auto& error_str = maybe_error.GetDataAndStackedError(error->DebugString()); |
| 361 | CHECK_NE(error->error_proto()->error_type_case(), ErrorProto::ERROR_TYPE_NOT_SET); |
| 362 | return error_str.first; |
| 363 | } |
| 364 | |
| 365 | std::string GetErrorString(const std::shared_ptr<StackedError>& error) { |
| 366 | std::string error_str; |
no test coverage detected