From 9a226ef2ea65603356ec86c0ef42dca95cea8782 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 10 Feb 2013 03:13:24 -0500 Subject: [PATCH] src/io: improve error messages --- src/io/sink_apple_audio.c | 2 +- src/io/source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.26.2