We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c813fa commit 46ba394Copy full SHA for 46ba394
src/xr_3da/entry_point.cpp
@@ -101,11 +101,24 @@ int main(int argc, char *argv[])
101
102
free(commandLine);
103
}
104
- catch (...)
+ catch (const std::overflow_error& e)
105
{
106
_resetstkoflw();
107
- FATAL("stack overflow");
+ FATAL_F("stack overflow: %s", e.what());
108
+ }
109
+ catch (const std::runtime_error& e)
110
+ {
111
+ FATAL_F("runtime error: %s", e.what());
112
113
+ catch (const std::exception& e)
114
115
+ FATAL_F("exception: %s", e.what());
116
117
+ catch (...)
118
119
+ // this executes if f() throws std::string or int or any other unrelated type
120
121
+
122
return result;
123
124
#endif
0 commit comments