diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 05:29:22 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 05:29:22 +0000 |
commit | 1d939538eb7f21545b7d0af71f96fc812a340670 (patch) | |
tree | 563b426b2646cc333ad53625a79494c588c35f8a /src/playlist.c | |
parent | 46792b175f3ef496a2247a89404b9d06ffe53688 (diff) |
a few extra strerror()'s sprinkled in the code
git-svn-id: https://svn.musicpd.org/mpd/trunk@2467 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c index 580a2e1ec..2c7492774 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -258,7 +258,8 @@ void savePlaylistState() { while(!(fp = fopen(playlist_stateFile,"w")) && errno==EINTR); if(!fp) { ERROR("problems opening state file \"%s\" for " - "writing\n",playlist_stateFile); + "writing: %s\n", playlist_stateFile, + sterror(errno)); return; } @@ -353,7 +354,8 @@ void readPlaylistState() { fp = fopen(playlist_stateFile,"r"); if(!fp) { ERROR("problems opening state file \"%s\" for " - "reading\n",playlist_stateFile); + "reading: %s\n", playlist_stateFile, + strerror(errno)); exit(EXIT_FAILURE); } |