From 547401aa95bf625992ab831bca933f85aa811242 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 20 Jun 2024 16:12:26 -0400 Subject: [PATCH] Return an error if we encounter an unsupported feature --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 519ae7d..11c6ce3 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -367,8 +367,8 @@ function parser_MOI(moimodel, index_map, nvar) contypes = MOI.get(moimodel, MOI.ListOfConstraintTypesPresent()) for (F, S) in contypes - F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || @warn("Function $F is not supported.") - S <: LS || @warn("Set $S is not supported.") + F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || error("Function $F is not supported.") + S <: LS || error("Set $S is not supported.") conindices = MOI.get(moimodel, MOI.ListOfConstraintIndices{F, S}()) for cidx in conindices