Skip to content

Commit

Permalink
Update src/structures.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Alejandro Tejada Arango <[email protected]>
  • Loading branch information
abelsiqueira and datejada authored Dec 11, 2024
1 parent 4f1e30e commit b16ef24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ This checks that the `container` length matches the stored `indices` number of r
"""
function attach_expression!(cons::TulipaConstraint, name::Symbol, container::Vector{JuMP.AffExpr})
if length(container) != cons.num_rows
error("The number of expressions does not match the number of rows in the indices")
error("The number of expressions does not match the number of rows in the indices of $name")
end
cons.expressions[name] = container
return nothing
Expand Down

0 comments on commit b16ef24

Please sign in to comment.