#include "dcpomatic_log.h"
#include "dcpomatic_socket.h"
#include "exceptions.h"
+#include "util.h"
#include <fmt/format.h>
#include <boost/bind/bind.hpp>
#include <boost/lambda/lambda.hpp>
} while (ec == boost::asio::error::would_block);
if (ec) {
- throw NetworkError (String::compose (_("error during async_connect (%1)"), ec.value ()));
+ throw NetworkError(String::compose(_("error during async_connect: (%1)"), error_details(ec)));
}
if (!_socket.is_open ()) {
} while (ec == boost::asio::error::would_block);
if (ec) {
- throw NetworkError (String::compose (_("error during async_connect (%1)"), ec.value ()));
+ throw NetworkError(String::compose(_("error during async_connect (%1)"), error_details(ec)));
}
if (!_socket.is_open ()) {
} while (ec == boost::asio::error::would_block);
if (ec) {
- throw NetworkError (String::compose (_("error during async_write (%1)"), ec.value ()));
+ throw NetworkError(String::compose(_("error during async_write (%1)"), error_details(ec)));
}
if (_write_digester) {
} while (ec == boost::asio::error::would_block);
if (ec) {
- throw NetworkError (String::compose (_("error during async_read (%1)"), ec.value ()));
+ throw NetworkError(String::compose(_("error during async_read (%1)"), error_details(ec)));
}
if (_read_digester) {