Skip to content

Commit

Permalink
Improve Help Logs (#956)
Browse files Browse the repository at this point in the history
* Improve Help Logs

* qa

* Use platform help in terminate
  • Loading branch information
tomadamatkinson authored Feb 28, 2024
1 parent 8ee282f commit 9f3bd53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/platform/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ ExitCode Platform::initialize(const std::vector<Plugin *> &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)
Expand All @@ -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;
}

Expand Down

0 comments on commit 9f3bd53

Please sign in to comment.