improve error reporting of lazy_bdecode to use error_code
This commit is contained in:
@@ -66,7 +66,7 @@ void send_dht_msg(datagram_socket& sock, char const* msg, lazy_entry* reply, cha
|
||||
TEST_CHECK(!ec);
|
||||
if (ec) std::cout << ec.message() << std::endl;
|
||||
|
||||
int ret = lazy_bdecode(inbuf, inbuf + size, *reply);
|
||||
int ret = lazy_bdecode(inbuf, inbuf + size, *reply, ec);
|
||||
TEST_CHECK(ret == 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user