@@ -121,13 +121,13 @@ end
121
121
122
122
function _attribute_error_message (attr, bridge, action)
123
123
return " Bridge of type `$(nameof (typeof (bridge))) ` does not support " *
124
- " $action the attribute `$attr `. If you encountered this error " *
125
- " unexpectedly, it probably means your model has been " *
126
- " reformulated using the bridge, and you are attempting to query " *
127
- " an attribute that we haven't implemented yet for this bridge. " *
128
- " Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new " *
129
- " and provide a reproducible example explaining what you were " *
130
- " trying to do."
124
+ " $action the attribute `$attr `. If you encountered this error " *
125
+ " unexpectedly, it probably means your model has been " *
126
+ " reformulated using the bridge, and you are attempting to query " *
127
+ " an attribute that we haven't implemented yet for this bridge. " *
128
+ " Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new " *
129
+ " and provide a reproducible example explaining what you were " *
130
+ " trying to do."
131
131
end
132
132
133
133
@@ -175,13 +175,13 @@ function MOI.set(
175
175
model:: MOI.ModelLike ,
176
176
attr:: MOI.AbstractConstraintAttribute ,
177
177
bridge:: AbstractBridge ,
178
- _ ,
178
+ :: Any ,
179
179
)
180
180
message = _attribute_error_message (attr, bridge, " setting a value for" )
181
181
if MOI. is_copyable (attr) && ! MOI. supports (model, attr, typeof (bridge))
182
- throw (MOI. UnsupportedAttribute (attr, message))
182
+ return throw (MOI. UnsupportedAttribute (attr, message))
183
183
else
184
- throw (MOI. SetAttributeNotAllowed (attr, message))
184
+ return throw (MOI. SetAttributeNotAllowed (attr, message))
185
185
end
186
186
end
187
187
0 commit comments