aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:07:37 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:07:37 +0000
commit6142959456403ee2ddee4ee83952d648f7bc1c7e (patch)
treea04fd19886bb22bd77d2fc4ea50c740b730a2e9b
parent913b2b83998e96f2cb152b47e2af1f988b7ebc48 (diff)
downloadmpd-6142959456403ee2ddee4ee83952d648f7bc1c7e.tar.gz
mpd-6142959456403ee2ddee4ee83952d648f7bc1c7e.tar.xz
mpd-6142959456403ee2ddee4ee83952d648f7bc1c7e.zip
proper bind error message for unix socket
git-svn-id: https://svn.musicpd.org/mpd/trunk@7238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/listen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listen.c b/src/listen.c
index 6b2ed994e..7d2a3597d 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -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