From 4d733b53cd273831a5b1d3861f9ab5ff7d7227ea Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 14 Dec 2013 21:10:50 -0500 Subject: [PATCH] examples/utils.c: print error messages on stderr --- examples/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/utils.c b/examples/utils.c index 96862af9..6fc64257 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -83,7 +83,7 @@ examples_common_init (int argc, char **argv) debug ("Opening files ...\n"); this_source = new_aubio_source ((char_t*)source_uri, samplerate, hop_size); if (this_source == NULL) { - outmsg ("Could not open input file %s\n", source_uri); + errmsg ("Error: could not open input file %s\n", source_uri); exit (1); } if (samplerate == 0) { @@ -92,13 +92,13 @@ examples_common_init (int argc, char **argv) if (sink_uri != NULL) { uint_t sink_exists = (access(sink_uri, F_OK) == 0 ); if (!force_overwrite && sink_exists) { - outmsg ("Output file %s already exists, use -f to overwrite.\n", + errmsg ("Error: output file %s already exists, use -f to overwrite.\n", sink_uri); exit (1); } this_sink = new_aubio_sink ((char_t*)sink_uri, samplerate); if (this_sink == NULL) { - outmsg ("Could not open output file %s\n", sink_uri); + errmsg ("Error: could not create output file %s\n", sink_uri); exit (1); } } -- 2.11.0