Changing all calls to ERROR() followed by exit(EXIT_FAILURE) with a single
call to FATAL(). git-svn-id: https://svn.musicpd.org/mpd/trunk@6276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -142,18 +142,16 @@ void initPaths(void)
|
||||
playlistDir = appendSlash(&(playlistParam->value));
|
||||
|
||||
if ((dir = opendir(playlistDir)) == NULL) {
|
||||
ERROR("cannot open %s \"%s\" (config line %i): %s\n",
|
||||
FATAL("cannot open %s \"%s\" (config line %i): %s\n",
|
||||
CONF_PLAYLIST_DIR, playlistParam->value,
|
||||
playlistParam->line, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
closedir(dir);
|
||||
|
||||
if ((dir = opendir(musicDir)) == NULL) {
|
||||
ERROR("cannot open %s \"%s\" (config line %i): %s\n",
|
||||
FATAL("cannot open %s \"%s\" (config line %i): %s\n",
|
||||
CONF_MUSIC_DIR, musicParam->value,
|
||||
musicParam->line, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
closedir(dir);
|
||||
|
||||
|
Reference in New Issue
Block a user