[tracker/sam/cli-create-database: 1/2] cli: Print `tracker endpoint` errors to stderr



commit d3f9c14c8e00535b3c9a087646b388105635de04
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Feb 25 16:15:52 2020 +0100

    cli: Print `tracker endpoint` errors to stderr

 src/tracker/tracker-endpoint.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker/tracker-endpoint.c b/src/tracker/tracker-endpoint.c
index 594ec5aaa..95e1942ae 100644
--- a/src/tracker/tracker-endpoint.c
+++ b/src/tracker/tracker-endpoint.c
@@ -74,18 +74,18 @@ static gboolean
 sanity_check (void)
 {
        if (!database_path) {
-               g_print ("%s\n", _("No database path was provided"));
+               g_printerr ("%s\n", _("No database path was provided"));
                return FALSE;
        }
 
        if (!dbus_service) {
-               g_print ("%s\n", _("No endpoint information was provided"));
+               g_printerr ("%s\n", _("No endpoint information was provided"));
                return FALSE;
        }
 
        if (!!ontology_path == !!ontology_name) {
                /* TRANSLATORS: those are commandline arguments */
-               g_print ("%s\n", _("One “ontology” or “ontology-path” option should be provided"));
+               g_printerr ("%s\n", _("One “ontology” or “ontology-path” option should be provided"));
                return FALSE;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]