diff options
author | couriersud <couriersud@gmx.org> | 2019-11-05 00:08:52 +0100 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2019-11-05 00:08:52 +0100 |
commit | 22e07506cc763caa4b26dbded8b14c466d8d6949 (patch) | |
tree | 73f98f3b1fdff8920669947594417d50e861a095 /src/devices/machine/netlist.cpp | |
parent | f315e47b89d62ddfe70a649dc439a80844d144c0 (diff) |
netlist: more consistent exception handling. (nw)
Still not optimal, but better than what we had previously. No exception
logging comes closer.
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r-- | src/devices/machine/netlist.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 394a2411703..e7c9e2184b1 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -69,7 +69,7 @@ public: } protected: - void vlog(const plib::plog_level &l, const pstring &ls) const override + void vlog(const plib::plog_level &l, const pstring &ls) const noexcept override { switch (l) { @@ -89,7 +89,9 @@ protected: m_parent.logerror("netlist ERROR: %s\n", ls.c_str()); break; case plib::plog_level::FATAL: - throw emu_fatalerror(1, "netlist FATAL: %s\n", ls.c_str()); + //throw emu_fatalerror(1, "netlist FATAL: %s\n", ls.c_str()); + m_parent.logerror("netlist FATAL: %s\n", ls.c_str()); + break; } } @@ -107,7 +109,7 @@ public: } protected: - void vlog(const plib::plog_level &l, const pstring &ls) const override + void vlog(const plib::plog_level &l, const pstring &ls) const noexcept override { switch (l) { @@ -125,7 +127,9 @@ protected: osd_printf_error("netlist ERROR: %s\n", ls); break; case plib::plog_level::FATAL: - throw emu_fatalerror(1, "netlist FATAL: %s\n", ls.c_str()); + osd_printf_error("netlist FATAL: %s\n", ls); + break; + //throw emu_fatalerror(1, "netlist FATAL: %s\n", ls.c_str()); } } |