better exception message
This commit is contained in:
parent
2cbcc8dd2e
commit
3479f2a981
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue