| 64 | } |
| 65 | |
| 66 | void result::dump(std::ostream& ostr) const { |
| 67 | if(is_success()) ostr << "[success] "; |
| 68 | else { |
| 69 | ostr << "from " << _impl->origin.get_file() << ":" |
| 70 | << _impl->origin.get_line() << " @ " << _impl->origin.get_function() |
| 71 | << "(): " << _impl->info.what(); |
| 72 | if (_impl->info.error_code().is_code_specified()) |
| 73 | ostr << " (error code = " << _impl->info.error_code().str() << ")"; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | result register_error( |
| 78 | const source_location &origin, const error_info &info) { |
no test coverage detected