Skip to content

Commit 5d1571d

Browse files
committed
more
1 parent c9243c0 commit 5d1571d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

maven-plugin/src/main/java/org/openmrs/maven/plugins/utility/DBConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public DBConnector(String url, String user, String pass, String dbName) throws S
2727
} catch (SQLException e2) {
2828
if (e2.getMessage().contains("Access denied")) {
2929
throw new SQLException("Invalid database credentials. Please check your username and password.", e2);
30-
} else if (e2.getMessage().contains("No suitable driver found for")) {
30+
} else if (e2.getMessage().contains("No suitable driver found for") || e2.getMessage().contains("Communications link failure")) {
3131
throw new SQLException("Incorrect Database Uri. Please provide a correct database uri.", e2);
3232
}
3333
throw e2;

sdk-commons/src/main/java/org/openmrs/maven/plugins/utility/DefaultWizard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ private URIBuilder addDefaultParamsIfMissing(String dbUri) throws MojoExecutionE
10331033
uri = new URIBuilder(noJdbc);
10341034
}
10351035
catch (URISyntaxException e) {
1036-
throw new MojoExecutionException("Database URI \"" + noJdbc + "\" is not a valid URI " + e.getMessage(), e);
1036+
throw new MojoExecutionException("Database URI \"" + noJdbc + "\" is not a valid URI. " + e.getMessage(), e);
10371037
}
10381038
uri.setParameter("autoReconnect", "true");
10391039
uri.setParameter("useUnicode", "true");

0 commit comments

Comments
 (0)