added more meaningful exception text to unix domain sockets
[senf.git] / Socket / Protocols / UN / ConnectedUNDatagramSocketHandle.cc
index f5429aa..9e47881 100644 (file)
@@ -40,7 +40,7 @@ prefix_ void senf::ConnectedUNDatagramSocketProtocol::init_client() const
 {
     int sock = ::socket(PF_UNIX,SOCK_DGRAM,0);
     if (sock < 0)
-        throwErrno();
+        throw SystemException( "Could not create socket(PF_UNIX,SOCK_DGRAM,0)" );
    fd(sock);
 }