lib/zhong/job.rb in zhong-0.1.3 vs lib/zhong/job.rb in zhong-0.1.4
- old
+ new
@@ -11,10 +11,10 @@
if @at && !@every
@logger.error "warning: #{self} has `at` but no `every`; could run far more often than expected!"
end
- fail "must specific either `at` or `every` for a job" unless @at || @every
+ fail "must specific either `at` or `every` for job: #{self}" unless @at || @every
@block = block
@redis = config[:redis]
@logger = config[:logger]