Skip to content

Commit

Permalink
perf: 优化报错提示
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Oct 5, 2024
1 parent e16393a commit a6f0dc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/snw/kookbc/impl/entity/UserImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,11 @@ public void recalculatePermissions(PermissionContext context) {
boolean calculated = false;
try {
calculated = calculateDefaultPerms(value, channel, roleIds, roles);
} catch (BadResponseException ignored) {
} catch (BadResponseException e) {
this.client.getCore().getLogger().error("Error occurred while calculating built-in permissions", e);
break;
} catch (Exception e) {
this.client.getCore().getLogger().error("Calculate permissions", e);
this.client.getCore().getLogger().error("Error occurred while calculating built-in permissions", e);
}
addAttachment(context, this.client.getInternalPlugin(), permission, calculated);
}
Expand Down

0 comments on commit a6f0dc7

Please sign in to comment.