Skip to content

Commit 5b8e59b

Browse files
author
Olha Virolainen
authored
Merge pull request #17 from elasticio/change-error-message
Update Error Message
2 parents 89f5d20 + 65e8bc5 commit 5b8e59b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/elastic/jdbc/triggers/SelectTrigger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ private void checkConfig(JsonObject config) {
106106
Pattern pattern = Pattern.compile(Utils.TEMPLATE_REGEXP);
107107
Matcher matcher = pattern.matcher(sqlQuery);
108108
if (matcher.find()) {
109-
throw new RuntimeException("Use of prepared statement variables template '"
109+
throw new RuntimeException("Use of prepared statement variables is forbidden: '"
110110
+ matcher.group()
111-
+ "' is forbidden");
111+
+ "'");
112112
}
113113
}
114114

0 commit comments

Comments
 (0)