From bb96d027c3fb498e247b7a9cbb7393980f462eef Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 29 Nov 2016 12:08:42 +0100 Subject: [PATCH] src/io/sink_sndfile.c: improve error message --- src/io/sink_sndfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io/sink_sndfile.c b/src/io/sink_sndfile.c index 033c79f3..4256a49e 100644 --- a/src/io/sink_sndfile.c +++ b/src/io/sink_sndfile.c @@ -141,7 +141,8 @@ uint_t aubio_sink_sndfile_open(aubio_sink_sndfile_t *s) { if (s->handle == NULL) { /* show libsndfile err msg */ - AUBIO_ERR("sink_sndfile: Failed opening %s. %s\n", s->path, sf_strerror (NULL)); + AUBIO_ERR("sink_sndfile: Failed opening \"%s\" with %d channels, %dHz: %s\n", + s->path, s->channels, s->samplerate, sf_strerror (NULL)); return AUBIO_FAIL; } -- 2.11.0