aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2018-02-02 11:09:22 -0800
committerMike Buland <mbuland@penny-arcade.com>2018-02-02 11:09:22 -0800
commit12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4 (patch)
tree0a7ee63f825b50a5f585cbc685affbaa5d207fdf
parent1cb0fc6ab3f05e37f8c4c0bf5549b320c8b89078 (diff)
downloadlibbu++-12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4.tar.gz
libbu++-12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4.tar.bz2
libbu++-12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4.tar.xz
libbu++-12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4.zip
Include real error messages on error?
-rw-r--r--src/stable/server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stable/server.cpp b/src/stable/server.cpp
index 0d20b16..d1cce45 100644
--- a/src/stable/server.cpp
+++ b/src/stable/server.cpp
@@ -66,7 +66,11 @@ void Bu::Server::scan()
66 if( TEMP_FAILURE_RETRY( select( FD_SETSIZE, 66 if( TEMP_FAILURE_RETRY( select( FD_SETSIZE,
67 &fdRead, &fdWrite, &fdException, &xTimeout ) ) < 0 ) 67 &fdRead, &fdWrite, &fdException, &xTimeout ) ) < 0 )
68 { 68 {
69 throw ExceptionBase("Error attempting to scan open connections."); 69 char buf[1024];
70 strerror_r( errno, buf, 1024 );
71 throw ExceptionBase(
72 Bu::String("Error attempting to scan open connections: %1").arg( buf ).end().getStr()
73 );
70 } 74 }
71 75
72 for( int j = 0; j < FD_SETSIZE; j++ ) 76 for( int j = 0; j < FD_SETSIZE; j++ )