From: Paul Brossier Date: Tue, 29 Nov 2016 11:08:42 +0000 (+0100) Subject: src/io/sink_sndfile.c: improve error message X-Git-Tag: 0.4.4~131 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=bb96d027c3fb498e247b7a9cbb7393980f462eef;p=aubio.git src/io/sink_sndfile.c: improve error message --- 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; }