File tree 2 files changed +5
-3
lines changed
main/java/org/opensearch/action/search
test/java/org/opensearch/search/geo
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ public SearchTask(
80
80
81
81
@ Override
82
82
public final String getDescription () {
83
- return descriptionSupplier .get ();
83
+ try {
84
+ return descriptionSupplier .get ();
85
+ } catch (UnsupportedOperationException e ) {
86
+ return e .getMessage ();
87
+ }
84
88
}
85
89
86
90
@ Override
Original file line number Diff line number Diff line change @@ -143,8 +143,6 @@ public void testQueryLinearRing() throws Exception {
143
143
e .getCause ().getMessage (),
144
144
containsString ("Field [" + defaultGeoFieldName + "] does not support LINEARRING queries" )
145
145
);
146
- } catch (UnsupportedOperationException e ) {
147
- assertThat (e .getMessage (), containsString ("line ring cannot be serialized using GeoJson" ));
148
146
}
149
147
}
150
148
You can’t perform that action at this time.
0 commit comments