Commit 75aa98dd authored by Max Kellermann's avatar Max Kellermann

command/Error: merge the two try/catch blocks

parent 06909f4f
...@@ -152,12 +152,6 @@ PrintError(Response &r, std::exception_ptr ep) ...@@ -152,12 +152,6 @@ PrintError(Response &r, std::exception_ptr ep)
std::rethrow_exception(ep); std::rethrow_exception(ep);
} catch (const std::exception &e) { } catch (const std::exception &e) {
LogError(e); LogError(e);
} catch (...) {
}
try {
std::rethrow_exception(ep);
} catch (const std::exception &e) {
r.Error(ToAck(ep), e.what()); r.Error(ToAck(ep), e.what());
} catch (...) { } catch (...) {
r.Error(ACK_ERROR_UNKNOWN, "Unknown error"); r.Error(ACK_ERROR_UNKNOWN, "Unknown error");
......
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