From 3f6a3357544262c4530504966222d6d2df83f177 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 18 Dec 2012 14:09:12 +0200 Subject: [PATCH] core: Don't print an error for missign main.conf file --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 403fe69cf..751779971 100644 --- a/src/main.c +++ b/src/main.c @@ -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; -- 2.47.3