mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
doorlockd: Improve error handling
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
34417b8ddb
commit
367afb4092
@ -248,6 +248,14 @@ int main(int argc, char** argv)
|
|||||||
onClientMessage));
|
onClientMessage));
|
||||||
server(port);
|
server(port);
|
||||||
}
|
}
|
||||||
|
catch (const boost::system::system_error &ex) {
|
||||||
|
l(LogLevel::error, "Fatal error: %s", ex.what());
|
||||||
|
retval = -1;
|
||||||
|
}
|
||||||
|
catch (const std::exception &ex) {
|
||||||
|
l(LogLevel::error, "Fatal error: %s", ex.what());
|
||||||
|
retval = -1;
|
||||||
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
l(LogLevel::error, "Fatal error, shutting down");
|
l(LogLevel::error, "Fatal error, shutting down");
|
||||||
retval = -1;
|
retval = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user