Skip to content

Commit dff8c74

Browse files
kellertuerlkdvos
andauthored
Update src/stopping_criterion.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 651577a commit dff8c74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stopping_criterion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ struct StopAfter <: StoppingCriterion
403403
threshold::Period
404404
function StopAfter(t::Period)
405405
if value(t) < 0
406-
error("You must provide a positive time period")
406+
throw(ArgumentError("You must provide a positive time period"))
407407
else
408408
s = new(t)
409409
end

0 commit comments

Comments
 (0)