From 75aa98ddaa8492ce6f857a6bca9fd9de854ab67a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 8 Sep 2016 10:25:55 +0200 Subject: [PATCH] command/Error: merge the two try/catch blocks --- src/command/CommandError.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx index 9faec6893..6af81e438 100644 --- a/src/command/CommandError.cxx +++ b/src/command/CommandError.cxx @@ -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");