Skip to content

Commit 715e15b

Browse files
Christian Perschraveit65
authored andcommitted
shell: Use g_printerr instead of g_warning
These are really runtime errors, not warnings, so just use g_printerr. origin commit: https://git.gnome.org/browse/evince/commit/?id=adbed8b
1 parent da9c89f commit 715e15b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shell/ev-application.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ ev_spawn (const char *uri,
285285
g_object_unref (ctx);
286286
}
287287
if (error != NULL) {
288-
g_warning ("Error launching atril %s: %s\n", uri, error->message);
288+
g_printerr ("Error launching atril %s: %s\n", uri, error->message);
289289
g_error_free (error);
290290
}
291291

@@ -398,7 +398,7 @@ on_register_uri_cb (GObject *source_object,
398398

399399
value = g_dbus_connection_call_finish (connection, res, &error);
400400
if (!value) {
401-
g_warning ("Error registering document: %s\n", error->message);
401+
g_printerr ("Error registering document: %s\n", error->message);
402402
g_error_free (error);
403403

404404
_ev_application_open_uri_at_dest (application,
@@ -585,7 +585,7 @@ ev_application_unregister_uri (EvApplication *application,
585585
NULL,
586586
&error);
587587
if (value == NULL) {
588-
g_warning ("Error unregistering document: %s\n", error->message);
588+
g_printerr ("Error unregistering document: %s\n", error->message);
589589
g_error_free (error);
590590
} else {
591591
g_variant_unref (value);

0 commit comments

Comments
 (0)