mapper: use g_warning() for logging

g_error() is fatal by default.  Use g_warning() for non-fatal
initialization errors.
This commit is contained in:
Max Kellermann 2008-10-31 16:46:46 +01:00
parent f098db149e
commit ef54271619
1 changed files with 5 additions and 5 deletions

View File

@ -45,12 +45,12 @@ void mapper_init(void)
ret = stat(music_dir, &st); ret = stat(music_dir, &st);
if (ret < 0) if (ret < 0)
g_error("failed to stat music directory \"%s\" (config line %i): %s\n", g_warning("failed to stat music directory \"%s\" (config line %i): %s\n",
music_dir_param->value, music_dir_param->line, music_dir_param->value, music_dir_param->line,
strerror(errno)); strerror(errno));
else if (!S_ISDIR(st.st_mode)) else if (!S_ISDIR(st.st_mode))
g_error("music directory is not a directory: \"%s\" (config line %i)\n", g_warning("music directory is not a directory: \"%s\" (config line %i)\n",
music_dir_param->value, music_dir_param->line); music_dir_param->value, music_dir_param->line);
} }
void mapper_finish(void) void mapper_finish(void)