Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
03ef1977
Commit
03ef1977
authored
May 16, 2013
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/local_socket.cc
View file @
03ef1977
...
...
@@ -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
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment