Skip to content

Commit 52ad8a4

Browse files
committed
Rephrase errorMessageWithDetails
1 parent 841aaed commit 52ad8a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database-commons/src/main/java/io/cdap/plugin/db/DBErrorDetailsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ private ProgramFailureException getProgramFailureException(SQLException e, Error
6767
String sqlState = e.getSQLState();
6868
int errorCode = e.getErrorCode();
6969
String errorMessageWithDetails = String.format(
70-
"Error occurred in the phase: '%s'. Error message: '%s'. Error code: '%s'. sqlState: '%s'",
71-
errorContext.getPhase(), errorMessage, errorCode, sqlState);
70+
"Error occurred in the phase: '%s' with sqlState: '%s', errorCode: '%s', errorMessage: %s",
71+
errorContext.getPhase(), sqlState, errorCode, errorMessage);
7272
String externalDocumentationLink = getExternalDocumentationLink();
7373
if (!Strings.isNullOrEmpty(externalDocumentationLink)) {
7474
if (!errorMessageWithDetails.endsWith(".")) {

0 commit comments

Comments
 (0)