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:
parent
81349d657d
commit
81b569f912
@ -437,6 +437,7 @@ namespace modules {
|
|||||||
return true;
|
return true;
|
||||||
} catch (const dwmipc::IPCError& err) {
|
} catch (const dwmipc::IPCError& err) {
|
||||||
m_log.err("%s: Failed to reconnect to socket: %s", name(), err.what());
|
m_log.err("%s: Failed to reconnect to socket: %s", name(), err.what());
|
||||||
|
throw module_error(err.what());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user