]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved exception logging
authorArvin Schnell <aschnell@suse.de>
Mon, 5 Dec 2022 10:33:22 +0000 (11:33 +0100)
committerArvin Schnell <aschnell@suse.de>
Mon, 5 Dec 2022 10:33:22 +0000 (11:33 +0100)
server/Client.cc

index f4674dbb100da6f9bd8860f62de3d7ab2d2502d4..5adcea7327977ee79f401a52b7a56e1b4fa6b9d0 100644 (file)
@@ -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");