Skip to content

Commit eeef999

Browse files
DaScheidliweinan
authored andcommittedJan 29, 2024
JBERET-452: Mask db-creds from exception message
1 parent 87dd820 commit eeef999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎jberet-core/src/main/java/org/jberet/repository/JdbcRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ private Connection getConnection() {
11121112
try {
11131113
return DriverManager.getConnection(dbUrl, dbProperties);
11141114
} catch (final Exception e) {
1115-
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, dbProperties);
1115+
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, "<db props> masked");
11161116
}
11171117
}
11181118
}

0 commit comments

Comments
 (0)
Please sign in to comment.