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 #include #include +#include #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); }