better exception message

This commit is contained in:
kimchy 2011-03-13 00:31:21 +02:00
parent bdb0fd23e9
commit aff8a4407f
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public class FetchPhase implements SearchPhase {
for (String fieldName : context.fieldNames()) {
FieldMappers x = context.mapperService().smartNameFieldMappers(fieldName);
if (x == null) {
throw new FetchPhaseExecutionException(context, "No mapping for field [" + fieldName + "]");
throw new FetchPhaseExecutionException(context, "No mapping for field [" + fieldName + "] in order to load it");
}
fieldSelector.add(x);
}