From 81349d657ddbad199570ea3346292c8e6a75f9e1 Mon Sep 17 00:00:00 2001 From: Mihir Lad Date: Wed, 29 Jul 2020 21:45:09 -0400 Subject: [PATCH] dwm: Don't swallow exceptions in stop() Don't want to mask any nasty bugs. --- src/modules/dwm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/dwm.cpp b/src/modules/dwm.cpp index f9b2dd4b..740ec741 100644 --- a/src/modules/dwm.cpp +++ b/src/modules/dwm.cpp @@ -147,7 +147,8 @@ namespace modules { try { m_log.info("%s: Disconnecting from socket", name()); m_ipc.reset(nullptr); - } catch (...) { + } catch (const dwmipc::IPCError& err) { + throw module_error(err.what()); } event_module::stop();