From b55a559a8bd81dc7452f599bb5f973eca86dd835 Mon Sep 17 00:00:00 2001 From: Joshua Palis Date: Thu, 19 Oct 2023 00:17:49 +0000 Subject: [PATCH] Fixing exception grammar Signed-off-by: Joshua Palis --- .../java/org/opensearch/flowframework/model/Template.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/flowframework/model/Template.java b/src/main/java/org/opensearch/flowframework/model/Template.java index 7d08ef240..70e640949 100644 --- a/src/main/java/org/opensearch/flowframework/model/Template.java +++ b/src/main/java/org/opensearch/flowframework/model/Template.java @@ -366,7 +366,7 @@ public static Template parseFromDocumentSource(String documentSource) throws IOE } } if (name == null) { - throw new IOException("An template object requires a name."); + throw new IOException("A template object requires a name."); } return new Template( @@ -507,7 +507,7 @@ public static Template parse(XContentParser parser) throws IOException { } } if (name == null) { - throw new IOException("An template object requires a name."); + throw new IOException("A template object requires a name."); } return new Template(