diff --git a/example/main.cpp b/example/main.cpp index 20c0c376b..36e69f775 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -8,6 +8,7 @@ int main(int argc, char *argv[]) { auto renderer = std::make_unique(argc, argv); renderer->run(); } catch (const std::exception &exception) { + // This will catch any exception that was not catched previously. spdlog::critical(exception.what()); return 1; }