From 736dfcf5bd088a3413659de8994be2f0e4f0727e Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Thu, 8 Jul 2021 14:45:33 +0200 Subject: [PATCH] Also rethrow exceptions on non-windows for testing --- lib/cli/daemoncommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cli/daemoncommand.cpp b/lib/cli/daemoncommand.cpp index 2eaefaeda..d1341bb12 100644 --- a/lib/cli/daemoncommand.cpp +++ b/lib/cli/daemoncommand.cpp @@ -497,6 +497,7 @@ static pid_t StartUnixWorker(const std::vector& configs, bool close _exit(RunWorker(configs, closeConsoleLog, stderrFile)); } catch (const std::exception& ex) { Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex); + throw; _exit(EXIT_FAILURE); } catch (...) { throw;