BIND 10 trac2916, updated. 03ef197742328752227b359e5c10cd12de97a967 [2916] corrected type of exception thrown from asiolib

BIND 10 source code commits bind10-changes at lists.isc.org
Thu May 16 16:42:14 UTC 2013


The branch, trac2916 has been updated
       via  03ef197742328752227b359e5c10cd12de97a967 (commit)
      from  7185b57ec3dfe44fb5ed0188e6234725cfb8fff0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 03ef197742328752227b359e5c10cd12de97a967
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Thu May 16 09:41:31 2013 -0700

    [2916] corrected type of exception thrown from asiolib
    
    error_code wasn't an exception type; it should have been system_error.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/asiolink/local_socket.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/asiolink/local_socket.cc b/src/lib/asiolink/local_socket.cc
index bd4af87..f47226e 100644
--- a/src/lib/asiolink/local_socket.cc
+++ b/src/lib/asiolink/local_socket.cc
@@ -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());
     }
 }
 



More information about the bind10-changes mailing list