Skip to content

Commit c99d768

Browse files
Christian Perschraveit65
authored andcommitted
thumbnailer: Send error messages to stderr
Use g_printerr, not g_print. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=3b59d64
1 parent 21073d4 commit c99d768

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎thumbnailer/atril-thumbnailer.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ time_monitor (gpointer data)
6262
app_name = g_get_application_name ();
6363
if (app_name == NULL)
6464
app_name = g_get_prgname ();
65-
g_print ("%s couldn't process file: '%s'\n"
66-
"Reason: Took too much time to process.\n",
67-
app_name,
68-
(const char *) data);
65+
g_printerr ("%s couldn't process file: '%s'\n"
66+
"Reason: Took too much time to process.\n",
67+
app_name,
68+
(const char *) data);
6969

7070
exit (0);
7171
}
@@ -271,7 +271,7 @@ main (int argc, char *argv[])
271271
g_option_context_free (context);
272272

273273
if (size < 1) {
274-
g_print ("Size cannot be smaller than 1 pixel\n");
274+
g_printerr ("Size cannot be smaller than 1 pixel\n");
275275
return -1;
276276
}
277277

0 commit comments

Comments
 (0)