summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-14 00:00:02 +0200
committerraveit65 <[email protected]>2018-03-22 08:44:05 +0100
commitc99d7683a89967006b760145d96325ce53697061 (patch)
treebef4e5b391db7b2ab7a7fb37f4f1073dca78a2de
parent21073d44b5dd40facc67ac3108802559d7b13448 (diff)
downloadatril-c99d7683a89967006b760145d96325ce53697061.tar.bz2
atril-c99d7683a89967006b760145d96325ce53697061.tar.xz
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
-rw-r--r--thumbnailer/atril-thumbnailer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c
index bc62502d..6e189040 100644
--- a/thumbnailer/atril-thumbnailer.c
+++ b/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;
}