Commit 03ef1977 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2916] corrected type of exception thrown from asiolib

error_code wasn't an exception type; it should have been system_error.
parent 7185b57e
......@@ -51,10 +51,10 @@ LocalSocket::LocalSocket(IOService& io_service, int fd) :
{
try {
impl_ = new Impl(io_service, fd);
} catch (const asio::error_code& error) {
} catch (const asio::system_error& error) {
// Catch and convert any exception from asio's constructor
isc_throw(IOError, "failed to open local socket with FD " << fd
<< ": " << error.message());
<< ": " << error.what());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment