Skip to content

Commit d2cabe2

Browse files
committed
Use FutureHandler
1 parent c48268b commit d2cabe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/eternalcode/parcellockers/discord/command/DiscordLinkCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void linkSelf(@Context Player player, @Arg Snowflake discordId) {
6262
})
6363
.exceptionally(error -> {
6464
this.noticeService.player(playerUuid, messages -> messages.discord.linkFailed);
65-
return null;
65+
return FutureHandler.handleException(error);
6666
});
6767
}
6868

0 commit comments

Comments
 (0)