From 47b979644bb577f0c1af27c3aaac45fd7071173a Mon Sep 17 00:00:00 2001 From: lassepe Date: Fri, 1 Sep 2023 17:10:09 +0200 Subject: [PATCH] Fix error handling for parameter dimension check --- src/solver.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver.jl b/src/solver.jl index 36932db..bb9deb8 100644 --- a/src/solver.jl +++ b/src/solver.jl @@ -11,7 +11,7 @@ function solve( length(initial_guess) == get_problem_size(problem) || throw(ArgumentError("initial guess must have length $(get_problem_size(problem))")) length(θ) == get_parameter_dimension(problem) || - throw(ArgumentError("θ must have length $(get_parameter_size(problem))")) + throw(ArgumentError("θ must have length $(get_parameter_dimension(problem))")) (; f!, jacobian_z!, lower_bounds, upper_bounds) = problem