merged error message fix from RC_0_16

This commit is contained in:
Arvid Norberg 2013-06-08 20:14:26 +00:00
parent 3413a760d7
commit 9c3f3b8455
1 changed files with 3 additions and 2 deletions

View File

@ -1447,8 +1447,9 @@ int main(int argc, char* argv[])
, ec, bind_to_interface.c_str()); , ec, bind_to_interface.c_str());
if (ec) if (ec)
{ {
fprintf(stderr, "failed to listen on %s on ports %d-%d: %s\n" fprintf(stderr, "failed to listen%s%s on ports %d-%d: %s\n"
, bind_to_interface.c_str(), listen_port, listen_port+1, ec.message().c_str()); , bind_to_interface.empty() ? "" : " on ", bind_to_interface.c_str()
, listen_port, listen_port+1, ec.message().c_str());
} }
#ifndef TORRENT_DISABLE_DHT #ifndef TORRENT_DISABLE_DHT