@@ -653,15 +653,15 @@ tighten_eltype(x::Vector{Any}) = map(identity, x)
653
653
654
654
@nospecialize check_initial_params (x, n) = throw (
655
655
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`" ,
657
657
),
658
658
)
659
659
check_initial_params (:: Nothing , n) = nothing
660
660
function check_initial_params (x:: AbstractArray , n)
661
661
if length (x) != n
662
662
throw (
663
663
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 ) " ,
665
665
),
666
666
)
667
667
end
@@ -671,15 +671,15 @@ end
671
671
672
672
@nospecialize check_initial_state (x, n) = throw (
673
673
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`" ,
675
675
),
676
676
)
677
677
check_initial_state (:: Nothing , n) = nothing
678
678
function check_initial_state (x:: AbstractArray , n)
679
679
if length (x) != n
680
680
throw (
681
681
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 ) " ,
683
683
),
684
684
)
685
685
end
0 commit comments