util/Exception: catch std::nested_exception

This commit is contained in:
Max Kellermann 2017-07-05 17:01:43 +02:00
parent 4af8e5bdb5
commit 6515b9727d

View File

@ -44,6 +44,8 @@ GetFullMessage(std::exception_ptr ep,
GetFullMessage(std::current_exception(),
fallback, separator);
}
} catch (const std::nested_exception &ne) {
return GetFullMessage(ne.nested_ptr(), fallback, separator);
}
return fallback;