lib/rbbt/tsv/attach.rb in rbbt-util-5.9.3 vs lib/rbbt/tsv/attach.rb in rbbt-util-5.9.4

- old
+ new

@@ -195,10 +195,10 @@ when (in_namespace and self.fields_in_namespace.include?(other.key_field)) Log.debug "Found other's key field in #{in_namespace}: #{other.key_field}" attach_source_key other, other.key_field, :fields => fields, :one2one => one2one else index = TSV.find_traversal(self, other, options) - raise "Cannot traverse identifiers" if index.nil? + raise FieldNotFoundError, "Cannot traverse identifiers" if index.nil? Log.debug "Attachment with index: #{other.key_field}" attach_index other, index, fields end Log.debug("Attachment of fields:#{Misc.fingerprint fields } from #{other.filename.inspect} finished.")