X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f747d8f9f2c4fed617e5ff22a719bfd45259f8..62f6be4448a1a8ba6b3ddc920df7c0957b7b1f31:/samples/sockets/client.cpp diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index fe33b6bd89..c435c1e9cc 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -618,7 +618,9 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event)) // Get the data wxStringOutputStream sout; if ( data->Read(sout).GetLastError() != wxSTREAM_EOF ) + { wxLogError("Error reading the input stream."); + } wxLogMessage("Text retrieved from URL \"%s\" follows:\n%s", urlname, sout.GetString());