From 12d4292b5b8dcf4ffc941ebb82a85df63f98d2c4 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 2 Feb 2018 11:09:22 -0800 Subject: Include real error messages on error? --- src/stable/server.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/stable/server.cpp') 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() if( TEMP_FAILURE_RETRY( select( FD_SETSIZE, &fdRead, &fdWrite, &fdException, &xTimeout ) ) < 0 ) { - throw ExceptionBase("Error attempting to scan open connections."); + char buf[1024]; + strerror_r( errno, buf, 1024 ); + throw ExceptionBase( + Bu::String("Error attempting to scan open connections: %1").arg( buf ).end().getStr() + ); } for( int j = 0; j < FD_SETSIZE; j++ ) -- cgit v1.2.3