Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-02-18 08:31:26


Author: chris_kohlhoff
Date: 2008-02-18 08:31:26 EST (Mon, 18 Feb 2008)
New Revision: 43301
URL: http://svn.boost.org/trac/boost/changeset/43301

Log:
Fix printing of error messages.

Text files modified:
   trunk/libs/asio/example/http/client/async_client.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/asio/example/http/client/async_client.cpp
==============================================================================
--- trunk/libs/asio/example/http/client/async_client.cpp (original)
+++ trunk/libs/asio/example/http/client/async_client.cpp 2008-02-18 08:31:26 EST (Mon, 18 Feb 2008)
@@ -83,7 +83,7 @@
     }
     else
     {
- std::cout << "Error: " << err << "\n";
+ std::cout << "Error: " << err.message() << "\n";
     }
   }
 
@@ -98,7 +98,7 @@
     }
     else
     {
- std::cout << "Error: " << err << "\n";
+ std::cout << "Error: " << err.message() << "\n";
     }
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk