Log test system exceptions (#4746)
This commit is contained in:
parent
5e9ca8425c
commit
75bee9463d
1 changed files with 14 additions and 1 deletions
|
|
@ -351,7 +351,20 @@ std::error_code nano::test::system::poll_until_true (std::chrono::nanoseconds de
|
||||||
deadline_set (deadline_a);
|
deadline_set (deadline_a);
|
||||||
while (!ec && !predicate_a ())
|
while (!ec && !predicate_a ())
|
||||||
{
|
{
|
||||||
ec = poll ();
|
try
|
||||||
|
{
|
||||||
|
ec = poll ();
|
||||||
|
}
|
||||||
|
catch (std::exception const & ex)
|
||||||
|
{
|
||||||
|
std::cerr << "Error running IO: " << ex.what () << std::endl;
|
||||||
|
ec = nano::error_system::generic;
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
std::cerr << "Unknown error running IO" << std::endl;
|
||||||
|
ec = nano::error_system::generic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ec;
|
return ec;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue