From: Arvin Schnell Date: Mon, 5 Dec 2022 10:33:22 +0000 (+0100) Subject: - improved exception logging X-Git-Tag: v0.10.4~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a05e87461db1e61a73441f300235d2e8cf2b48d;p=thirdparty%2Fsnapper.git - improved exception logging --- diff --git a/server/Client.cc b/server/Client.cc index f4674dbb..5adcea73 100644 --- a/server/Client.cc +++ b/server/Client.cc @@ -1946,6 +1946,12 @@ Client::dispatch(DBus::Connection& conn, DBus::Message& msg) DBus::MessageError reply(msg, "error.something", DBUS_ERROR_FAILED); conn.send(reply); } + catch (const exception& e) + { + y2err("caught unknown exception (" << e.what() << ")"); + DBus::MessageError reply(msg, "error.something", DBUS_ERROR_FAILED); + conn.send(reply); + } catch (...) { y2err("caught unknown exception");