ext/sndfileio.c: shorten sndfile error message
authorPaul Brossier <piem@piem.org>
Sun, 30 Aug 2009 12:46:59 +0000 (14:46 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 30 Aug 2009 12:46:59 +0000 (14:46 +0200)
ext/sndfileio.c

index 1065b40..ebaa943 100644 (file)
@@ -46,8 +46,8 @@ aubio_sndfile_t * new_aubio_sndfile_ro(const char* outputname) {
         f->handle = sf_open (outputname, SFM_READ, &sfinfo);
 
         if (f->handle == NULL) {
-                AUBIO_ERR("Unable to open input file %s.\n", outputname);
-                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
+                AUBIO_ERR("Failed opening %s: %s\n", outputname,
+                        sf_strerror (NULL)); /* libsndfile err msg */
                 return NULL;
         }