diff --git a/src/remake.jl b/src/remake.jl index 35d96e9c79..4a88999e7c 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -356,10 +356,10 @@ function updated_u0(prob, u0, p) if length(u0) == length(state_values(prob)) return u0 else - throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map")) + throw(ArgumentError("Invalid value for u0: $u0. New length ($length(u0)) does not match length of current problem ($(length(state_values(prob))))")) end else - throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map")) + return u0 end if !has_sys(prob.f) throw(ArgumentError("This problem does not support symbolic maps with" *