Skip to content
Snippets Groups Projects
Commit 0ea7b8cf authored by pjs's avatar pjs
Browse files

raise rather than fail

parent 1a2f1a30
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ module SimpleKit
# - +args+ -> an optional list of arguments to pass to the event
# at invocation time.
def schedule(event, delay, *args)
fail 'Model scheduled event with negative delay.' if delay < 0
raise 'Model scheduled event with negative delay.' if delay < 0
@event_list.push EventNotice.new(event, @model_time + delay, args)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment