From: Paul Brossier Date: Sun, 10 Feb 2013 08:13:24 +0000 (-0500) Subject: src/io: improve error messages X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a226ef2ea65603356ec86c0ef42dca95cea8782;p=aubio.git src/io: improve error messages --- diff --git a/src/io/sink_apple_audio.c b/src/io/sink_apple_audio.c index 5ae19d1e..4cce3f4a 100644 --- a/src/io/sink_apple_audio.c +++ b/src/io/sink_apple_audio.c @@ -77,7 +77,7 @@ aubio_sink_apple_audio_t * new_aubio_sink_apple_audio(char_t * uri, uint_t sampl err = ExtAudioFileCreateWithURL(fileURL, fileType, &clientFormat, NULL, overwrite ? kAudioFileFlags_EraseFile : 0, &s->audioFile); if (err) { - AUBIO_ERR("error when trying to access %s, in ExtAudioFileOpenURL, %d\n", s->path, (int)err); + AUBIO_ERR("error when trying to create %s, in ExtAudioFileCreateWithURL, %d\n", s->path, (int)err); goto beach; } if (createAubioBufferList(&s->bufferList, s->channels, s->max_frames * s->channels)) { diff --git a/src/io/source.c b/src/io/source.c index b4da594b..aa91cbb6 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -44,7 +44,7 @@ aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_si if (s->source) return s; #endif /* HAVE_SNDFILE */ #endif /* __APPLE__ */ - AUBIO_ERROR("failed creating aubio source with %s", uri); + AUBIO_ERROR("failed creating aubio source with %s\n", uri); AUBIO_FREE(s); return NULL; }