mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Fixed ErrorContext of some errors being omitted
This commit is contained in:
parent
46e486e00c
commit
5fae224ef6
@ -94,7 +94,7 @@ public class PluginErrorLogger implements ErrorLogger {
|
||||
}
|
||||
|
||||
private void mergeAdditionalContext(Throwable throwable, ErrorContext context) {
|
||||
Throwable cause = throwable.getCause();
|
||||
Throwable cause = throwable;
|
||||
while (cause != null) {
|
||||
if (cause instanceof ExceptionWithContext) {
|
||||
((ExceptionWithContext) cause).getContext().ifPresent(context::merge);
|
||||
|
Loading…
Reference in New Issue
Block a user