From: Paul Brossier Date: Mon, 11 Feb 2013 03:29:27 +0000 (-0500) Subject: examples/utils.c: improve error message if no input found X-Git-Tag: 0.4.0-beta1~335^2~1 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=a4bf052635d805dbd751edb0e30db3c06df56d5a;p=aubio.git examples/utils.c: improve error message if no input found --- diff --git a/examples/utils.c b/examples/utils.c index 95568e17..16c321cb 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -184,9 +184,8 @@ parse_args (int argc, char **argv) debug ("Jack input output\n"); usejack = 1; #else - debug - ("Error: Could not switch to jack mode\n aubio was compiled without jack support\n"); - exit (1); + errmsg("Error: no arguments given (and no available audio input)\n"); + usage ( stderr, 1 ); #endif }