Merge branch 'master' into jgrpp
# Conflicts: # src/base_station_base.h # src/newgrf_roadstop.cpp # src/newgrf_station.cpp # src/object_gui.cpp # src/saveload/settings_sl.cpp # src/saveload/station_sl.cpp # src/settings.cpp # src/settings_internal.h # src/timer/timer_game_calendar.cpp
This commit is contained in:
@@ -111,6 +111,8 @@ inline bool StartNewThread(std::thread *thr, const char *name, TFn&& _Fx, TArgs&
|
||||
try {
|
||||
/* Call user function with the given arguments. */
|
||||
F(A...);
|
||||
} catch (std::exception &e) {
|
||||
error("Unhandled exception in %s thread: %s", name, e.what());
|
||||
} catch (...) {
|
||||
NOT_REACHED();
|
||||
}
|
||||
|
Reference in New Issue
Block a user