Skip to content
Permalink
Browse files

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 Jun 13, 2012
1 parent 2f89fcc commit cfbab0ad8e12730462bdefdd389cadb43f4c0f0a
Showing with 5 additions and 5 deletions.
  1. +5 −5 thumbnailer/atril-thumbnailer.c
@@ -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);
}
@@ -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;
}

0 comments on commit cfbab0a

Please sign in to comment.
You can’t perform that action at this time.