command/Error: merge the two try/catch blocks
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user