make format error raise with message

This commit is contained in:
Adam Meehan 2008-12-07 21:29:50 +11:00
parent 37bfbfe5e7
commit 40437c970d

View File

@ -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