src/io/sink_sndfile.c: improve error message
authorPaul Brossier <piem@piem.org>
Tue, 29 Nov 2016 11:08:42 +0000 (12:08 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 29 Nov 2016 11:08:42 +0000 (12:08 +0100)
src/io/sink_sndfile.c

index 033c79f..4256a49 100644 (file)
@@ -141,7 +141,8 @@ uint_t aubio_sink_sndfile_open(aubio_sink_sndfile_t *s) {
 
   if (s->handle == NULL) {
     /* show libsndfile err msg */
 
   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;
   }
 
     return AUBIO_FAIL;
   }