diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-05-10 12:49:48 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-05-10 12:49:48 +0200 |
commit | 82443c242a4496d86b2d24209db8a3dd6cb584a1 (patch) | |
tree | 899763aee12a6d6fa0d782b3b896415a1d9c463e /bin | |
parent | f98836e96af3671f97467e479e0e36a1e171875a (diff) |
Use g_printerr to print errors on stderr
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ufo-launch.c | 8 | ||||
-rw-r--r-- | bin/ufo-runjson.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/ufo-launch.c b/bin/ufo-launch.c index c09267e..7c66c96 100644 --- a/bin/ufo-launch.c +++ b/bin/ufo-launch.c @@ -514,7 +514,7 @@ main(int argc, char* argv[]) g_option_context_add_main_entries (context, entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) { - g_print ("Error parsing options: %s\n", error->message); + g_printerr ("Error parsing options: %s\n", error->message); return 1; } @@ -534,7 +534,7 @@ main(int argc, char* argv[]) if (graph == NULL) { if (error != NULL) - g_print ("Error parsing pipeline: %s\n", error->message); + g_printerr ("Error parsing pipeline: %s\n", error->message); return 1; } @@ -576,7 +576,7 @@ main(int argc, char* argv[]) ufo_base_scheduler_run (sched, graph, &error); if (error != NULL) { - g_print ("Error executing pipeline: %s\n", error->message); + g_printerr ("Error executing pipeline: %s\n", error->message); return 1; } @@ -598,7 +598,7 @@ main(int argc, char* argv[]) ufo_task_graph_save_to_json (graph, dump, &error); if (error != NULL) - g_print ("Error dumping task graph: %s\n", error->message); + g_printerr ("Error dumping task graph: %s\n", error->message); } g_list_for (nodes, it) diff --git a/bin/ufo-runjson.c b/bin/ufo-runjson.c index f740fc7..663c9da 100644 --- a/bin/ufo-runjson.c +++ b/bin/ufo-runjson.c @@ -44,7 +44,7 @@ static void handle_error (const gchar *prefix, GError *error, UfoGraph *graph) { if (error) { - g_warning ("%s: %s", prefix, error->message); + g_printerr ("%s: %s", prefix, error->message); g_error_free (error); exit (EXIT_FAILURE); } @@ -261,7 +261,7 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries (context, entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) { - g_print ("Option parsing failed: %s\n", error->message); + g_printerr ("Option parsing failed: %s\n", error->message); return 1; } |