handle errors in main entry point

This commit is contained in:
scawful
2024-05-30 00:31:02 -04:00
parent fb22dc2bb1
commit 0f19fda556
3 changed files with 8 additions and 4 deletions

View File

@@ -244,11 +244,12 @@ void Controller::OnInput() {
HandleMouseMovement(wheel);
}
void Controller::OnLoad() {
absl::Status Controller::OnLoad() {
if (master_editor_.quit()) {
active_ = false;
}
PRINT_IF_ERROR(master_editor_.Update());
RETURN_IF_ERROR(master_editor_.Update());
return absl::OkStatus();
}
void Controller::DoRender() const {