lib/rufus/scheduler.rb in rufus-scheduler-3.1.9 vs lib/rufus/scheduler.rb in rufus-scheduler-3.1.10

- old
+ new

@@ -37,11 +37,11 @@ require 'rufus/scheduler/jobs' require 'rufus/scheduler/cronline' require 'rufus/scheduler/job_array' require 'rufus/scheduler/locks' - VERSION = '3.1.9' + VERSION = '3.1.10' # # A common error class for rufus-scheduler # class Error < StandardError; end @@ -627,10 +627,10 @@ CronJob end job = job_class.new(self, t, opts, block || callable) - raise ArgumentError.new( + fail ArgumentError.new( "job frequency (#{job.frequency}) is higher than " + "scheduler frequency (#{@frequency})" ) if job.respond_to?(:frequency) && job.frequency < @frequency @jobs.push(job)