lib/timeliness/format.rb in timeliness-0.3.2 vs lib/timeliness/format.rb in timeliness-0.3.3
- old
+ new
@@ -36,11 +36,11 @@
define_process_method(token_order.compact)
@regexp_string = format
@regexp = Regexp.new("^(#{format})$")
self
- rescue
- raise "The format '#{format_string}' failed to compile using regexp string #{format}."
+ rescue => ex
+ raise "The format '#{format_string}' failed to compile using regexp string #{format}. Error: #{ex.inspect}"
end
# Redefined on compile
def process(*args); end