From 6142959456403ee2ddee4ee83952d648f7bc1c7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:07:37 +0000 Subject: proper bind error message for unix socket git-svn-id: https://svn.musicpd.org/mpd/trunk@7238 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/listen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3