hflr 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/hflr.gemspec +1 -1
- data/lib/hflr/record_template.rb +4 -0
- metadata +1 -1
data/hflr.gemspec
CHANGED
data/lib/hflr/record_template.rb
CHANGED
@@ -124,7 +124,11 @@ def self.create_template_class(record_type, record_type_label, layout, first_col
|
|
124
124
|
begin
|
125
125
|
fields << right_format(record[i], width)
|
126
126
|
rescue Exception=>msg
|
127
|
+
if record.is_a?(Struct)
|
127
128
|
raise "Output format problem for #{record.members[i].to_s} #{msg.to_s}"
|
129
|
+
else
|
130
|
+
raise "Output format problem for column #{i.to_s} with value #{record[i].to_s} #{msg.to_s}"
|
131
|
+
end
|
128
132
|
end
|
129
133
|
end
|
130
134
|
return fields
|