Skip to content

Commit

Permalink
Modify error message
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Aug 14, 2023
1 parent 4aaf9a8 commit 5b57071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public static Processor readProcessor(
@Nullable Object config
) throws Exception {
if (config == null) {
throw newConfigurationException(type, null, null, "processor [" + type + "] cannot be null");
throw newConfigurationException(type, null, null, "the config of processor [" + type + "] cannot be null");
} else if (config instanceof Map) {
return readProcessor(processorFactories, scriptService, type, (Map<String, Object>) config);
} else if (config instanceof String && "script".equals(type)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void testReadProcessors() throws Exception {
OpenSearchParseException.class,
() -> ConfigurationUtils.readProcessorConfigs(config3, scriptService, registry)
);
assertEquals(ex.getMessage(), "processor [null_processor] cannot be null");
assertEquals(ex.getMessage(), "the config of processor [null_processor] cannot be null");
}

public void testReadProcessorNullDescription() throws Exception {
Expand Down

0 comments on commit 5b57071

Please sign in to comment.