Commit 9fd0c986 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

An error is (back again) displayed during setup if no connection to the database was found.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10494 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1428f32f
......@@ -44,11 +44,6 @@
try {
con = DbConnectionManager.getConnection();
if (con == null) {
success = false;
errors.put("general","A connection to the database could not be "
+ "made. View the error message by opening the "
+ "\"" + File.separator + "logs" + File.separator + "error.log\" log "
+ "file, then go back to fix the problem.");
}
else {
// See if the Jive db schema is installed.
......@@ -67,7 +62,14 @@
}
}
}
catch (Exception ignored) {}
catch (SQLException ex) {
success = false;
errors.put("general","A connection to the database could not be "
+ "made. View the error message by opening the "
+ "\"" + File.separator + "logs" + File.separator + "error.log\" log "
+ "file, then go back to fix the problem.");
}
finally {
try {
con.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment