Commit 3b6a3316 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miners-common: Make g_error() a soft error

Make TrackerDomainOntology initialization fail if the .rule file
is not found, instead of a fatal error.

Closes: tracker#42
parent e79cc212
Pipeline #39624 passed with stage
in 1 minute and 17 seconds
......@@ -332,7 +332,11 @@ tracker_domain_ontology_initable_init (GInitable *initable,
path_for_tests = g_strdup (g_getenv ("TRACKER_TEST_DOMAIN_ONTOLOGY_RULE"));
if (path_for_tests == NULL) {
g_error ("Unable to find default domain ontology rule %s", path);
inner_error = g_error_new (G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_NOT_FOUND,
"Unable to find default domain ontology rule %s",
path);
goto end;
}
g_free (path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment