Ignore exception if bootError != null

Former-commit-id: 45f52d1159754b7ed7e52252758a367bc2a94fe5
This commit is contained in:
Ghost_chu committed 2020-01-11 11:26:53 +08:00
1 parent 1472dc0145
commit af8fc52e2f
1 file changed
+3
@@ -186,6 +186,9 @@ public class SentryErrorReporter {
*/
public @Nullable UUID sendError(@NotNull Throwable throwable, @NotNull String... context) {
try {
if(QuickShop.instance.getBootError() != null){
return null; //Don't report any errors if boot failed.
}
if (tempDisable) {
Util.debugLog("Ignore a throw, cause this throw flagged not reporting.");
this.tempDisable = true;