core: Don't print an error for missign main.conf file

This commit is contained in:
Johan Hedberg 2012-12-18 14:09:12 +02:00
parent d50d267b61
commit 3f6a335754

View File

@ -90,7 +90,8 @@ static GKeyFile *load_config(const char *file)
g_key_file_set_list_separator(keyfile, ',');
if (!g_key_file_load_from_file(keyfile, file, 0, &err)) {
error("Parsing %s failed: %s", file, err->message);
if (!g_error_matches(err, G_FILE_ERROR, G_FILE_ERROR_NOENT))
error("Parsing %s failed: %s", file, err->message);
g_error_free(err);
g_key_file_free(keyfile);
return NULL;