diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-03 14:03:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-03 14:03:37 +0000 |
| commit | 43974f2cc0f88118336eece4361ebae20fc12aae (patch) | |
| tree | 3b164c75ca4028d914f18716871fde9792c36ec3 /src | |
| parent | 821b556975c44bcb2c8607fc26462b7b79db2fe6 (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 e4fc24564..2b6dd766e 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 ())); } } |
