diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-03 14:07:57 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-03 14:07:57 +0000 |
| commit | 82f6c0c0b2f1751160cf4b8a63ff34bd0319db89 (patch) | |
| tree | a401f23da5fe20a6f5506affc08fc0ef37a44c4f /src | |
| parent | 6c8c6b5d2f95b8e8fd7f72e34e3a7fded6762794 (diff) | |
Remove uses of boost::system::error_code::message(), which seem to cause the pure virtual method boost::system::error_category::message() to be called in some cases.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index ddc0a2974..32b1805be 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -539,7 +539,7 @@ Socket::connect (boost::asio::ip::tcp::endpoint endpoint) } while (ec == boost::asio::error::would_block); if (ec) { - throw NetworkError (ec.message ()); + throw NetworkError (String::compose (_("error during async_connect (%1)"), ec.value ())); } if (!_socket.is_open ()) { @@ -563,7 +563,7 @@ Socket::accept (int port) _acceptor = 0; if (ec) { - throw NetworkError (ec.message ()); + throw NetworkError (String::compose (_("error during async_accept (%1)"), ec.value ())); } } @@ -584,7 +584,7 @@ Socket::write (uint8_t const * data, int size) } while (ec == boost::asio::error::would_block); if (ec) { - throw NetworkError (ec.message ()); + throw NetworkError (String::compose (_("error during async_write (%1)"), ec.value ())); } } @@ -612,7 +612,7 @@ Socket::read (uint8_t* data, int size) } while (ec == boost::asio::error::would_block); if (ec) { - throw NetworkError (ec.message ()); + throw NetworkError (String::compose (_("error during async_read (%1)"), ec.value ())); } } |
