Permalink
Browse files

Give more information in exception

  • Loading branch information...
1 parent a0f4774 commit 2a6e3915b2994177a3fa635c4faa36cd52c7918f @foobacca committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sunburnt/schema.py
View
@@ -521,7 +521,7 @@ def parse_result_doc(self, doc, name=None):
if field_class is None and name == "score":
field_class = SolrScoreField()
elif field_class is None:
- raise SolrError("unexpected field found in result")
+ raise SolrError("unexpected field found in result (field name: %s)" % name)
return name, SolrFieldInstance.from_solr(field_class, doc.text or '').to_user_data()

0 comments on commit 2a6e391

Please sign in to comment.