From d4b13a88ccce20011c74c8faf48d4c027664b055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 2 Jul 2014 18:26:13 +0000 Subject: [PATCH] improved exception reporting in cli_frontend (nw) --- src/emu/clifront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/clifront.c b/src/emu/clifront.c index 55250b30fa5..82df1743cbe 100644 --- a/src/emu/clifront.c +++ b/src/emu/clifront.c @@ -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 (...)