aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 4ca9fa658..48d5eff09 100644
--- a/src/path.c
+++ b/src/path.c
@@ -27,6 +27,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <errno.h>
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO_CODESET
@@ -116,11 +117,11 @@ void initPaths(char * playlistDirArg, char * musicDirArg) {
playlistDir = prependCwdToPathDup(playlistDirArg);
if((stat(playlistDir,&st))<0) {
- ERROR("problem stat'ing \"%s\"\n",playlistDirArg);
+ ERROR("problem stat'ing \"%s\": %s\n", playlistDirArg, strerror(errno));
exit(EXIT_FAILURE);
}
if(!S_ISDIR(st.st_mode)) {
- ERROR("\"%s\" is not a directory\n",playlistDirArg);
+ ERROR("\"%s\" is not a directory: %s\n", playlistDirArg, strerror(errno));
exit(EXIT_FAILURE);
}