hflr 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/hflr.gemspec +1 -1
- data/lib/hflr/record_template.rb +6 -1
- metadata +1 -1
data/hflr.gemspec
CHANGED
data/lib/hflr/record_template.rb
CHANGED
@@ -23,7 +23,7 @@ def self.create(record_layouts, record_type_symbols, first_column_location, extr
|
|
23
23
|
extra_columns = empty_extra_columns(record_layouts.keys) if extra_columns.is_a? Array
|
24
24
|
templates = {}
|
25
25
|
self.check_record_layouts(record_layouts)
|
26
|
-
|
26
|
+
begin
|
27
27
|
record_layouts.each_pair do |record_type, vars|
|
28
28
|
record_label = record_type_symbols == :none ? :none : record_type_symbols[record_type]
|
29
29
|
templates[record_type] =
|
@@ -33,6 +33,11 @@ def self.create(record_layouts, record_type_symbols, first_column_location, extr
|
|
33
33
|
first_column_location,
|
34
34
|
extra_columns[record_type])
|
35
35
|
end
|
36
|
+
|
37
|
+
rescue Exception=>msg
|
38
|
+
raise " Problem building record templates, record types: #{record_type_symbols.inspect} and layouts: #{record_layouts.inspect}, initial exception was #{msg.to_s}"
|
39
|
+
end
|
40
|
+
|
36
41
|
return templates
|
37
42
|
end
|
38
43
|
|