usocket.c
changeset 14 286b248e402a
parent 12 6a372f8b4b8a
--- a/usocket.c	Fri Sep 14 22:27:01 2007 +0200
+++ b/usocket.c	Fri Sep 14 23:37:11 2007 +0200
@@ -44,11 +44,11 @@
 
     res = bind(ls, (struct sockaddr *) & addr, sizeof(addr));
     if (res == -1)
-        error("Error binding");
+        error("Error binding to %s", socket_path);
 
     res = listen(ls, 10);
     if (res == -1)
-        error("Error listening");
+        error("Error listening on the binded unix socket");
 
     return ls;
 }
@@ -77,7 +77,7 @@
 
     res = connect(cs, (struct sockaddr *) &addr, sizeof(addr));
     if (res == -1)
-        error("Cannot connect");
+        error("Cannot connect to %s", socket_path);
     return cs;
 }