mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
better exception message
This commit is contained in:
parent
bdb0fd23e9
commit
aff8a4407f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user