diff --git a/src/arrays.jl b/src/arrays.jl index 9062e4a..97d24d9 100644 --- a/src/arrays.jl +++ b/src/arrays.jl @@ -34,7 +34,7 @@ function signal(x::AbstractArray{<:Any,N},::IsSignal, end function signal(x::AxisArray,::IsSignal,fs::Union{Missing,Number}=missing) if !isconsistent(fs,samplerate(x)) - error("Signal expected to have sample rate of $fs Hz.") + error("Signal expected to have sample rate of $(inHz(fs)) Hz.") else x end diff --git a/src/signal.jl b/src/signal.jl index ec7b737..4984ae7 100644 --- a/src/signal.jl +++ b/src/signal.jl @@ -131,7 +131,7 @@ function signal(x,::IsSignal,fs) if ismissing(samplerate(x)) tosamplerate(x,fs) elseif !isconsistent(fs,samplerate(x)) - error("Signal expected to have sample rate of $fs Hz.") + error("Signal expected to have sample rate of $(inHz(fs)) Hz.") else x end