better exception message

This commit is contained in:
kimchy 2010-09-21 23:49:55 +02:00
parent 2cbcc8dd2e
commit 3479f2a981
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class CachedDfSource extends Searcher {
public int docFreq(Term term) {
int df = dfs.dfMap().get(term);
if (df == -1) {
throw new IllegalArgumentException("df for term " + term.text() + " not available");
throw new IllegalArgumentException("df for term " + term + " not available");
}
return df;
}