From 3520bfbeef160df8685b944498763a646e0fc40b Mon Sep 17 00:00:00 2001 From: Arnaud Blanchard <arnaud.blanchard@ensea.fr> Date: Thu, 11 May 2017 12:17:25 +0200 Subject: [PATCH] Improve error message --- i_sndfile/i_sndfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i_sndfile/i_sndfile.cpp b/i_sndfile/i_sndfile.cpp index 9f7f163..f303bf0 100644 --- a/i_sndfile/i_sndfile.cpp +++ b/i_sndfile/i_sndfile.cpp @@ -42,7 +42,8 @@ int main(int argc, char**argv){ BLC_COMMAND_LOOP(period*1000){ read_items_nb=sf_read_float(sndfile, output.floats, output.total_length); if (read_items_nb!=output.total_length) { - PRINT_WARNING("Iteration %d: Missing data. Read '%d' items instead of '%d'", blc_loop_iteration, read_items_nb, output.total_length); + color_eprintf(BLC_YELLOW, "%s: Iteration %d: Missing data. Read '%d' items instead of '%d'. It is probably the end of the file\n", blc_program_name, blc_loop_iteration, read_items_nb, output.total_length); + blc_command_ask_quit(); break; } } -- GitLab