| 363 | } |
| 364 | |
| 365 | std::string GetErrorString(const std::shared_ptr<StackedError>& error) { |
| 366 | std::string error_str; |
| 367 | if (IsInDebugMode()) { |
| 368 | error_str = GetStackedErrorString(error); |
| 369 | } else { |
| 370 | error_str = error->error_proto()->msg(); |
| 371 | } |
| 372 | if (error_str.empty()) { error_str = "<No error message>"; } |
| 373 | return error_str; |
| 374 | } |
| 375 | |
| 376 | void ThrowError(const std::shared_ptr<StackedError>& error) { |
| 377 | std::string error_str; |
no test coverage detected