Print the error when unable to read the configuration

This commit is contained in:
Pierre Pronchery 2011-09-21 12:01:40 +00:00
parent 67d30e6fc4
commit dd0dfc0848

View File

@ -758,7 +758,8 @@ static gboolean _new_config_load(gpointer data)
return FALSE;
if((filename = _mailer_get_config_filename()) == NULL)
return FALSE;
config_load(mailer->config, filename);
if(config_load(mailer->config, filename) != 0)
mailer_error(NULL, error_get(), 1);
free(filename);
value = _mailer_get_font(mailer);
font = pango_font_description_from_string(value);