Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Christian Persch authored and raveit65 committed Mar 21, 2018
1 parent 2f89fcc commit cfbab0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thumbnailer/atril-thumbnailer.c
Expand Up @@ -62,10 +62,10 @@ time_monitor (gpointer data)
app_name = g_get_application_name ();
if (app_name == NULL)
app_name = g_get_prgname ();
g_print ("%s couldn't process file: '%s'\n"
"Reason: Took too much time to process.\n",
app_name,
(const char *) data);
g_printerr ("%s couldn't process file: '%s'\n"
"Reason: Took too much time to process.\n",
app_name,
(const char *) data);

exit (0);
}
Expand Down Expand Up @@ -271,7 +271,7 @@ main (int argc, char *argv[])
g_option_context_free (context);

if (size < 1) {
g_print ("Size cannot be smaller than 1 pixel\n");
g_printerr ("Size cannot be smaller than 1 pixel\n");
return -1;
}

Expand Down

0 comments on commit cfbab0a

Please sign in to comment.