servers: add dedicated catch for boost::system::system_error
To get message from error_code instead of what()
This commit is contained in:
parent
8cdf83393e
commit
734a99c781
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ void server_base::run() {
|
|||
} catch(const server_shutdown& e) {
|
||||
LOG_SERVER << "Server has been shut down: " << e.what() << "\n";
|
||||
break;
|
||||
} catch(const boost::system::system_error& e) {
|
||||
ERR_SERVER << "Caught system error exception from handler: " << e.code().message() << "\n";
|
||||
} catch(const std::exception& e) {
|
||||
ERR_SERVER << "Caught exception from handler: " << e.what() << "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue