forked from SteamWar/SteamWar
Fix VelocityCore
This commit is contained in:
@@ -82,7 +82,7 @@ public abstract class AbstractLinker<T> {
|
||||
try {
|
||||
any = clazz.newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new SecurityException(e.getMessage());
|
||||
throw new SecurityException(e.getMessage(), e);
|
||||
}
|
||||
instances.put(clazz, any);
|
||||
|
||||
@@ -104,7 +104,7 @@ public abstract class AbstractLinker<T> {
|
||||
try {
|
||||
field.set(o, instances.get(field.getType()));
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new SecurityException(e);
|
||||
throw new SecurityException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user