command/Error: merge the two try/catch blocks

This commit is contained in:
Max Kellermann 2016-09-08 10:25:55 +02:00
parent 06909f4f00
commit 75aa98ddaa

View File

@ -152,12 +152,6 @@ PrintError(Response &r, std::exception_ptr ep)
std::rethrow_exception(ep);
} catch (const std::exception &e) {
LogError(e);
} catch (...) {
}
try {
std::rethrow_exception(ep);
} catch (const std::exception &e) {
r.Error(ToAck(ep), e.what());
} catch (...) {
r.Error(ACK_ERROR_UNKNOWN, "Unknown error");