dwm: Throw module_error if reconnect fails

If reconnect fails, the rest of the module is useless. Better to throw a
module_error in case of any predictable dwmipc errors.
This commit is contained in:
Mihir Lad 2020-07-29 21:47:37 -04:00
parent 81349d657d
commit 81b569f912

View File

@ -437,6 +437,7 @@ namespace modules {
return true;
} catch (const dwmipc::IPCError& err) {
m_log.err("%s: Failed to reconnect to socket: %s", name(), err.what());
throw module_error(err.what());
}
return false;
}