Also rethrow exceptions on non-windows for testing

This commit is contained in:
Julian Brost 2021-07-08 14:45:33 +02:00
parent fc89dedfd0
commit 736dfcf5bd

View File

@ -497,6 +497,7 @@ static pid_t StartUnixWorker(const std::vector<std::string>& configs, bool close
_exit(RunWorker(configs, closeConsoleLog, stderrFile)); _exit(RunWorker(configs, closeConsoleLog, stderrFile));
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex); Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex);
throw;
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} catch (...) { } catch (...) {
throw; throw;