Skip to content

Commit

Permalink
change error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jul 15, 2020
1 parent 787c79b commit 17e9388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OnlineStatsBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end
fit!(o::OnlineStat{T}, yi::T) where {T} = (_fit!(o, yi); return o)

function fit!(o::OnlineStat{I}, y::T) where {I, T}
T == eltype(y) && error("The input for $(name(o,false,false)) is a $I. Found $T.")
T == eltype(y) && error("The input for $(name(o,false,false)) is $I. Found $T.")
for yi in y
fit!(o, yi)
end
Expand Down

0 comments on commit 17e9388

Please sign in to comment.