This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 0ac08ba camel-sql - Fix wrong cause logged in JdbcMessageIdRepository
if creating table fails (#5267)
0ac08ba is described below
commit 0ac08bada29438eb4fc88999d74ebdfa6531a152
Author: Artem Snisarenko <[email protected]>
AuthorDate: Fri Mar 26 07:38:24 2021 +0200
camel-sql - Fix wrong cause logged in JdbcMessageIdRepository if creating
table fails (#5267)
---
.../apache/camel/processor/idempotent/jdbc/JdbcMessageIdRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/JdbcMessageIdRepository.java
b/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/JdbcMessageIdRepository.java
index 8d5c0b0..a0e9db2 100644
---
a/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/JdbcMessageIdRepository.java
+++
b/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/JdbcMessageIdRepository.java
@@ -94,7 +94,7 @@ public class JdbcMessageIdRepository extends
AbstractJdbcMessageIdRepository {
// we will fail if we cannot create it
log.error(
"Can't create table for
JdbcMessageIdRepository with query '{}' because of: {}. This may be a
permissions problem. Please create this table and try again.",
- getCreateString(), e.getMessage());
+ getCreateString(), dae.getMessage());
throw dae;
}
} else {