lib/locabulary/hierarchy_processor.rb in locabulary-0.7.1 vs lib/locabulary/hierarchy_processor.rb in locabulary-0.8.1

- old
+ new

@@ -44,10 +44,10 @@ def associate_parents_and_childrens_for(hierarchy_graph_keys, items) items.each do |item| begin hierarchy_graph_keys.fetch(item.parent_term_label).add_child(item) unless item.parent_slugs.empty? rescue KeyError => error - raise Exceptions::MissingHierarchicalParentError.new(predicate_name, error) + raise Exceptions::MissingHierarchicalParentError.new(predicate_name, error, item) end end end end private_constant :HierarchyProcessor