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:
parent
f098db149e
commit
ef54271619
10
src/mapper.c
10
src/mapper.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue