File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 377377
378378"""
379379 submit(optimizer::AbstractOptimizer, sub::AbstractSubmittable,
380- value )::Nothing
380+ values... )::Nothing
381381
382- Submit `value ` to the submittable `sub` of the optimizer `optimizer`.
382+ Submit `values ` to the submittable `sub` of the optimizer `optimizer`.
383383
384384An [`UnsupportedSubmittable`](@ref) error is thrown if `model` does not support
385385the attribute `attr` (see [`supports`](@ref)) and a [`SubmitNotAllowed`](@ref)
@@ -388,7 +388,8 @@ error is thrown if it supports the submittable `sub` but it cannot be submitted.
388388function submit end
389389function submit (model:: ModelLike , sub:: AbstractSubmittable , args... )
390390 if supports (model, sub)
391- throw (SubmitNotAllowed (sub))
391+ throw (ArgumentError (
392+ " Submitting $(typeof .(args)) for `$(typeof (sub)) ` is not valid." ))
392393 else
393394 throw (UnsupportedSubmittable (sub))
394395 end
You can’t perform that action at this time.
0 commit comments