Skip to content

Commit

Permalink
Fixed database loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Feb 25, 2024
1 parent 565e043 commit 96903d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stratagus/stratagus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,13 @@ QCoro::Task<void> stratagusMain(int argc, char **argv)

void load_database(const bool initial_definition)
{
database::get()->load(initial_definition).then([]() {
//do nothing
}, [](const std::exception &exception) {
try {
QCoro::waitFor(database::get()->load(initial_definition));
} catch (...) {
exception::report(std::current_exception());
log::log_error("Error loading database.");
std::terminate();
});
}
}

void load_defines()
Expand Down

0 comments on commit 96903d5

Please sign in to comment.