added more tests to increase test coverage
[senf.git] / Socket / Protocols / UN / UNAddressing.cc
index 59c5cfa..bcf1641 100644 (file)
@@ -35,7 +35,7 @@
 prefix_ void senf::UNSocketAddress::path(std::string const & path)
 {
     if (path.size() > sizeof(sockaddr_un)-sizeof(short)-1)
-        throw AddressSyntaxException();
+        throw AddressSyntaxException() << "UNSocketAddress path too long: " << path;
     socklen(path.size()+sizeof(short));
     memcpy(addr_.sun_path, path.c_str(), socklen()-sizeof(short));
     addr_.sun_path[socklen()-sizeof(short)+1] = 0;