@@ -653,15 +653,15 @@ tighten_eltype(x::Vector{Any}) = map(identity, x)
653653
654654@nospecialize check_initial_params (x, n) = throw (
655655 ArgumentError (
656- " initial parameters must be specified as a vector of length equal to the number of chains or `nothing`" ,
656+ " initial_params must be specified as a vector of length equal to the number of chains or `nothing`" ,
657657 ),
658658)
659659check_initial_params (:: Nothing , n) = nothing
660660function check_initial_params (x:: AbstractArray , n)
661661 if length (x) != n
662662 throw (
663663 ArgumentError (
664- " incorrect number of initial parameters (expected $n , received $ (length (x))"
664+ " the length of initial_params ( $ (length (x))) does not equal the number of chains ( $n ) " ,
665665 ),
666666 )
667667 end
@@ -671,15 +671,15 @@ end
671671
672672@nospecialize check_initial_state (x, n) = throw (
673673 ArgumentError (
674- " initial states must be specified as a vector of length equal to the number of chains or `nothing`" ,
674+ " initial_state must be specified as a vector of length equal to the number of chains or `nothing`" ,
675675 ),
676676)
677677check_initial_state (:: Nothing , n) = nothing
678678function check_initial_state (x:: AbstractArray , n)
679679 if length (x) != n
680680 throw (
681681 ArgumentError (
682- " incorrect number of initial states (expected $n , received $ (length (x))"
682+ " the length of initial_state ( $ (length (x))) does not equal the number of chains ( $n ) " ,
683683 ),
684684 )
685685 end
0 commit comments