Browse Source

tweak error message

David Rose 23 years ago
parent
commit
ef16b83f94
1 changed files with 4 additions and 12 deletions
  1. 4 12
      panda/src/downloader/bioStreamBuf.cxx

+ 4 - 12
panda/src/downloader/bioStreamBuf.cxx

@@ -165,18 +165,10 @@ underflow() {
       if (read_count <= 0) {
         _is_closed = !BIO_should_retry(*_source);
         if (_is_closed) {
-          if (read_count == 0) {
-            downloader_cat.info()
-              << "Lost connection to "
-              << _source->get_server_name() << ":" 
-              << _source->get_port() << ".\n";
-          } else {
-            downloader_cat.info()
-              << "Socket error detected on " 
-              << _source->get_server_name() << ":" 
-              << _source->get_port() << ", return code "
-              << read_count << ".\n";
-          }
+          downloader_cat.info()
+            << "Lost connection to "
+            << _source->get_server_name() << ":" 
+            << _source->get_port() << " (" << read_count << ").\n";
 #ifdef REPORT_OPENSSL_ERRORS
           ERR_print_errors_fp(stderr);
 #endif