Skip to content

Commit ce8714a

Browse files
authored
[Transform] Catch deprecations as Exception rather than IOException (#94553)
1 parent 734b2cd commit ce8714a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/94553.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 94553
2+
summary: Catch deprecations as `Exception` rather than `IOException`
3+
area: Transform
4+
type: bug
5+
issues: []

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/QueryConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void checkForDeprecations(String id, NamedXContentRegistry namedXContentR
147147

148148
try {
149149
queryFromXContent(source, namedXContentRegistry, deprecationLogger);
150-
} catch (IOException e) {
150+
} catch (Exception e) {
151151
onDeprecation.accept(
152152
new DeprecationIssue(
153153
Level.CRITICAL,

0 commit comments

Comments
 (0)