To edit pages or tickets please login with username/password: aaf/aaf

Changeset 301

Show
Ignore:
Timestamp:
01/19/08 18:05:55 (9 months ago)
Author:
jk
Message:

more information when document_number method fails

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/lib/local_index.rb

    r267 r301  
    185185      hits = ferret_index.search(query_for_record(id, class_name)) 
    186186      return hits.hits.first.doc if hits.total_hits == 1 
    187       raise "cannot determine document number from primary key: #{id}" 
     187      raise "cannot determine document number for class #{class_name} / primary key: #{id}\nresult was: #{hits.inspect}" 
    188188    end 
    189189 

To edit pages or tickets please login with username/password: aaf/aaf