mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Show better description to users when std::bad_alloc happens
This commit is contained in:
parent
4ef93fe25f
commit
033128d8dc
4 changed files with 18 additions and 11 deletions
|
@ -277,9 +277,8 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args)
|
|||
|
||||
#ifdef NDEBUG
|
||||
catch (std::exception &e) {
|
||||
std::string error_message = "Some exception: \"";
|
||||
error_message += e.what();
|
||||
error_message += "\"";
|
||||
error_message = "Some exception: ";
|
||||
error_message.append(debug_describe_exc(e));
|
||||
errorstream << error_message << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue