Browse Source

show err_msg in Visual Studio debugger

pull/1/head
Volker Birk 2 years ago
parent
commit
52c7c372df
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      webserver.cc

+ 2
- 1
webserver.cc View File

@ -182,7 +182,8 @@ void Webserver::do_session(tcp::socket *socket)
break;
if (ec) {
delete socket;
throw std::ios_base::failure(ec.message());
std::string err_msg(ec.message());
throw std::ios_base::failure(err_msg.c_str());
}
const auto method = req.method();


Loading…
Cancel
Save