From 2774a73d83025525a04ca8b7f265154555adc10f Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 10 Aug 2021 10:28:21 +0200 Subject: [PATCH] Sentry: move welcome message to after version print --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7f10294..62540b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,11 +55,12 @@ int main(int argc, char** argv) try { bool Shutdown = false; Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; }); - Sentry.PrintWelcome(); TServer Server(argc, argv); TConfig Config; + Sentry.PrintWelcome(); + if (Config.Failed()) { info("Closing in 10 seconds"); std::this_thread::sleep_for(std::chrono::seconds(10));