Skip to content

Commit

Permalink
Merge pull request #72 from mardy/print-panic
Browse files Browse the repository at this point in the history
Print exception message on panic
  • Loading branch information
sharkwouter committed Mar 24, 2024
2 parents 456f04c + 520b80e commit 6750f40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ int main(int argv, char** args) {
} catch (const Json::LogicError&) {
SDL_Log("Configuration file invalid, please delete it");
return EXIT_FAILURE;
} catch (const std::runtime_error &e) {
SDL_Log("Error: %s", e.what());
return EXIT_FAILURE;
}

return EXIT_SUCCESS;
Expand Down

0 comments on commit 6750f40

Please sign in to comment.