mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Ignore exception if bootError != null
Former-commit-id: 45f52d1159754b7ed7e52252758a367bc2a94fe5
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user