Skip to content

Commit

Permalink
JBERET-598: Mask db-creds from exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
DaScheid authored and TomasHofman committed Jan 31, 2024
1 parent 11ef68b commit 7f94d00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ private Connection getConnection() {
try {
return DriverManager.getConnection(dbUrl, dbProperties);
} catch (final Exception e) {
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, dbProperties);
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, "<db props> masked");
}
}
}
Expand Down

0 comments on commit 7f94d00

Please sign in to comment.