From 5abed8f8a8091633069b4c1f6883100fd8b41fd3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 23 Nov 2023 17:00:02 +0100 Subject: [PATCH] Better exit codes from the server --- programs/server/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/server/Server.cpp b/programs/server/Server.cpp index efb5ccb3203..53e2db91f27 100644 --- a/programs/server/Server.cpp +++ b/programs/server/Server.cpp @@ -1970,7 +1970,7 @@ catch (...) { /// Poco does not provide stacktrace. tryLogCurrentException("Application"); - throw; + return getCurrentExceptionCode(); } std::unique_ptr Server::buildProtocolStackFromConfig(