Skip to content

Commit

Permalink
Normalize exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 21, 2014
1 parent 4f7d381 commit a9824b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recurrence/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def self.yearly(options = {})
#
def initialize(options)
raise ArgumentError, ":every option is required" unless options.key?(:every)
raise ArgumentError, "invalid :every option" unless FREQUENCY.include?(options[:every].to_s)
raise ArgumentError, ":every option is invalid" unless FREQUENCY.include?(options[:every].to_s)

options[:except] = [options[:except]].flatten.map {|d| as_date(d)} if options[:except]

Expand Down

0 comments on commit a9824b1

Please sign in to comment.