mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
improved exception reporting in cli_frontend (nw)
This commit is contained in:
parent
dd7ab21ef2
commit
d4b13a88cc
@ -274,9 +274,9 @@ int cli_frontend::execute(int argc, char **argv)
|
||||
osd_printf_error("Caught unhandled emulator exception\n");
|
||||
m_result = MAMERR_FATALERROR;
|
||||
}
|
||||
catch (std::bad_alloc &)
|
||||
catch (std::exception &ex)
|
||||
{
|
||||
osd_printf_error("Out of memory!\n");
|
||||
osd_printf_error("Caught unhandled %s exception: %s\n", typeid(ex).name(), ex.what());
|
||||
m_result = MAMERR_FATALERROR;
|
||||
}
|
||||
catch (...)
|
||||
|
Loading…
Reference in New Issue
Block a user