From 9f3bd53500bde779ebbbbe993148b7b6e1bd6ddd Mon Sep 17 00:00:00 2001 From: Tom Atkinson Date: Wed, 28 Feb 2024 15:24:41 +0000 Subject: [PATCH] Improve Help Logs (#956) * Improve Help Logs * qa * Use platform help in terminate --- framework/platform/platform.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/framework/platform/platform.cpp b/framework/platform/platform.cpp index c2961e393..3b70e54ad 100644 --- a/framework/platform/platform.cpp +++ b/framework/platform/platform.cpp @@ -116,6 +116,12 @@ ExitCode Platform::initialize(const std::vector &plugins) return ExitCode::Close; } + if (!app_requested()) + { + LOGE("An app was not requested, can not continue"); + return ExitCode::Help; + } + create_window(window_properties); if (!window) @@ -131,7 +137,7 @@ ExitCode Platform::main_loop() { if (!app_requested()) { - LOGI("An app was not requested, can not continue"); + LOGE("An app was not requested, can not continue"); return ExitCode::Close; }