Skip to content

Commit dcbb020

Browse files
committed
Fix wrong exception being logged on BlueMapAPI-listener error
1 parent 511d3ff commit dcbb020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ public void register() {
168168
try {
169169
BlueMapAPI.registerInstance(this);
170170
} catch (Exception ex) {
171-
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!", ex.getCause());
171+
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!", ex);
172172
}
173173
}
174174

175175
public void unregister() {
176176
try {
177177
BlueMapAPI.unregisterInstance(this);
178178
} catch (Exception ex) {
179-
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onDisable)!", ex.getCause());
179+
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onDisable)!", ex);
180180
}
181181
}
182182

0 commit comments

Comments
 (0)