From 8bd884d394a4686430a477615d6a9fe0a7ea9f28 Mon Sep 17 00:00:00 2001 From: Spencer Russell Date: Wed, 27 Feb 2019 09:01:09 -0500 Subject: [PATCH] fixes field acess error when printing other errors --- src/PortAudio.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PortAudio.jl b/src/PortAudio.jl index 1365a10..551fca4 100644 --- a/src/PortAudio.jl +++ b/src/PortAudio.jl @@ -296,7 +296,7 @@ function handle_errors(stream::PortAudioStream) nread = read!(stream.errbuf, err) nread == 1 || break if err[1] == PA_SHIM_ERRMSG_ERR_OVERFLOW - warn("Error buffer overflowed on stream $(stream.name)") + warn("Error buffer overflowed on portaudio stream") elseif err[1] == PA_SHIM_ERRMSG_OVERFLOW # warn("Input overflowed from $(name(stream.source))") elseif err[1] == PA_SHIM_ERRMSG_UNDERFLOW @@ -304,7 +304,7 @@ function handle_errors(stream::PortAudioStream) else error(""" Got unrecognized error code $(err[1]) from audio thread for - stream "$(stream.name)". Please file an issue at + portaudio stream. Please file an issue at https://github.com/juliaaudio/portaudio.jl/issues""") end end