| 65 | static thread_local asio_error_stack asio_errors; |
| 66 | |
| 67 | void asio_error_handler::handle_exception(const exception& exc) { |
| 68 | log_error("asio/net error: $", exc.what()); |
| 69 | asio_errors.add(exc.what()); |
| 70 | } |
| 71 | |
| 72 | asio_error_handler::error asio_error_handler::get_error() { |
| 73 | if(asio_errors.empty()) return {}; |