proper bind error message for unix socket

git-svn-id: https://svn.musicpd.org/mpd/trunk@7238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-04-12 04:07:37 +00:00 committed by Eric Wong
parent 913b2b8399
commit 6142959456

View File

@ -183,7 +183,8 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param)
addrlen = sizeof(sun);
if (establishListen(addrp, addrlen) < 0)
BINDERROR();
FATAL("unable to bind to %s: %s\n",
param->value, strerror(errno));
#endif /* HAVE_UN */
} else {
#ifdef HAVE_TCP