mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
make format error raise with message
This commit is contained in:
parent
37bfbfe5e7
commit
40437c970d
@ -237,8 +237,7 @@ module ValidatesTimeliness
|
||||
|
||||
return Regexp.new(regexp), format_proc(order)
|
||||
rescue
|
||||
puts "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}."
|
||||
raise
|
||||
raise "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}."
|
||||
end
|
||||
|
||||
# Generates a proc which when executed maps the regexp capture groups to a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user