diff options
author | Max Kellermann <max@duempel.org> | 2008-10-31 16:46:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-31 16:46:46 +0100 |
commit | ef542716196b90b71480ee952db64c3df736a12e (patch) | |
tree | 3bde102ba43f7d1dc32f1beaf0ab981065cffce2 /src/mapper.c | |
parent | f098db149eab679bd71ef597713c3a22a75cc0fa (diff) | |
download | mpd-ef542716196b90b71480ee952db64c3df736a12e.tar.gz mpd-ef542716196b90b71480ee952db64c3df736a12e.tar.xz mpd-ef542716196b90b71480ee952db64c3df736a12e.zip |
mapper: use g_warning() for logging
g_error() is fatal by default. Use g_warning() for non-fatal
initialization errors.
Diffstat (limited to 'src/mapper.c')
-rw-r--r-- | src/mapper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mapper.c b/src/mapper.c index 66d3bcc9f..f0a546eb2 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -45,12 +45,12 @@ void mapper_init(void) ret = stat(music_dir, &st); if (ret < 0) - g_error("failed to stat music directory \"%s\" (config line %i): %s\n", - music_dir_param->value, music_dir_param->line, - strerror(errno)); + g_warning("failed to stat music directory \"%s\" (config line %i): %s\n", + music_dir_param->value, music_dir_param->line, + strerror(errno)); else if (!S_ISDIR(st.st_mode)) - g_error("music directory is not a directory: \"%s\" (config line %i)\n", - music_dir_param->value, music_dir_param->line); + g_warning("music directory is not a directory: \"%s\" (config line %i)\n", + music_dir_param->value, music_dir_param->line); } void mapper_finish(void) |