Commit 570dcb63 authored by Max Kellermann's avatar Max Kellermann

command/Error: support nested exceptions

parent 19e43087
......@@ -171,7 +171,12 @@ ToAck(std::exception_ptr ep)
} catch (const std::system_error &e) {
return ACK_ERROR_SYSTEM;
} catch (...) {
return ACK_ERROR_UNKNOWN;
try {
std::rethrow_if_nested(ep);
return ACK_ERROR_UNKNOWN;
} catch (...) {
return ToAck(std::current_exception());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment