improve error reporting of lazy_bdecode to use error_code
This commit is contained in:
@@ -17,7 +17,8 @@ int test_main()
|
||||
{
|
||||
char b[] = "d1:ai12453e1:b3:aaa1:c3:bbbe";
|
||||
lazy_entry e;
|
||||
int ret = lazy_bdecode(b, b + sizeof(b)-1, e);
|
||||
error_code ec;
|
||||
int ret = lazy_bdecode(b, b + sizeof(b)-1, e, ec);
|
||||
}
|
||||
ptime stop(time_now());
|
||||
|
||||
|
Reference in New Issue
Block a user