From cb441ac8b371ba26cbcb0293e05993480f46fa47 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sun, 5 Jan 2020 18:08:28 +0800 Subject: [PATCH] Only report quickshop error Former-commit-id: f292f221556cdfa4f70072a4d8a4bb0f99f96db7 --- .../java/org/maxgamer/quickshop/Util/SentryErrorReporter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java index c70c98a41..07f26f81c 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java +++ b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java @@ -137,6 +137,9 @@ public class SentryErrorReporter { if (throwable == null) { return false; } + if(throwable.getMessage().contains("Could not pass event")){ + return throwable.getMessage().contains("QuickShop"); + } while (throwable.getCause() != null) { throwable = throwable.getCause(); }