mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-29 12:37:40 +01:00
Catch throwable instead of exception when handling hikari errors (#2444)
This commit is contained in:
parent
f72a5cb6b5
commit
47ca6b162b
@ -173,7 +173,7 @@ public abstract class HikariConnectionFactory implements ConnectionFactory {
|
||||
Class<?> clazz;
|
||||
try {
|
||||
clazz = Class.forName(className);
|
||||
} catch (Exception ex) {
|
||||
} catch (Exception e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -181,7 +181,7 @@ public abstract class HikariConnectionFactory implements ConnectionFactory {
|
||||
String loaderName;
|
||||
try {
|
||||
loaderName = plugin.getBootstrap().identifyClassLoader(loader) + " (" + loader.toString() + ")";
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
loaderName = loader.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user