From a4bf052635d805dbd751edb0e30db3c06df56d5a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 10 Feb 2013 22:29:27 -0500 Subject: [PATCH] examples/utils.c: improve error message if no input found --- examples/utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 } -- 2.26.2