Skip to content

Commit

Permalink
fix: optimizing ClassNotFoundException error message for MYSQL (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-HUANT authored Jul 17, 2023
1 parent 8ee3d32 commit 23776a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private SchemaTransaction openSchemaTransaction() throws HugeException {
} catch (BackendException e) {
String message = "Failed to open schema transaction";
LOG.error("{}", message, e);
throw new HugeException(message);
throw new HugeException(message, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private Connection connect(String url) throws SQLException {
// Register JDBC driver
Class.forName(driverName);
} catch (ClassNotFoundException e) {
throw new BackendException("Invalid driver class '%s'",
throw new BackendException("Failed to register JDBC driver. Class '%s' not found. Please check if the MySQL driver package is available.",
driverName);
}
return DriverManager.getConnection(url, username, password);
Expand Down

0 comments on commit 23776a7

Please sign in to comment.