mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 06:16:44 +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)
|
return Regexp.new(regexp), format_proc(order)
|
||||||
rescue
|
rescue
|
||||||
puts "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}."
|
raise "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}."
|
||||||
raise
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generates a proc which when executed maps the regexp capture groups to a
|
# Generates a proc which when executed maps the regexp capture groups to a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user