Skip to content

Commit 547401a

Browse files
committed
Return an error if we encounter an unsupported feature
1 parent 0810e40 commit 547401a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ function parser_MOI(moimodel, index_map, nvar)
367367

368368
contypes = MOI.get(moimodel, MOI.ListOfConstraintTypesPresent())
369369
for (F, S) in contypes
370-
F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || @warn("Function $F is not supported.")
371-
S <: LS || @warn("Set $S is not supported.")
370+
F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || error("Function $F is not supported.")
371+
S <: LS || error("Set $S is not supported.")
372372

373373
conindices = MOI.get(moimodel, MOI.ListOfConstraintIndices{F, S}())
374374
for cidx in conindices

0 commit comments

Comments
 (0)