Skip to content

Commit d157ebe

Browse files
authored
error message threw error message
`sys` had gone away from the function body, so it had to be grabbed from elsewhere
1 parent 2db7f5f commit d157ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linearization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function CommonSolve.solve(prob::LinearizationProblem; allow_input_derivatives =
349349
if !iszero(Bs)
350350
if !allow_input_derivatives
351351
der_inds = findall(vec(any(!=(0), Bs, dims = 1)))
352-
error("Input derivatives appeared in expressions (-g_z\\g_u != 0), the following inputs appeared differentiated: $(inputs(sys)[der_inds]). Call `linearize` with keyword argument `allow_input_derivatives = true` to allow this and have the returned `B` matrix be of double width ($(2nu)), where the last $nu inputs are the derivatives of the first $nu inputs.")
352+
error("Input derivatives appeared in expressions (-g_z\\g_u != 0), the following inputs appeared differentiated: $(inputs(prob.f.prob.f.sys)[der_inds]). Call `linearize` with keyword argument `allow_input_derivatives = true` to allow this and have the returned `B` matrix be of double width ($(2nu)), where the last $nu inputs are the derivatives of the first $nu inputs.")
353353
end
354354
B = [B [zeros(nx, nu); Bs]]
355355
D = [D zeros(ny, nu)]

0 commit comments

Comments
 (0)