From 696e499b55ca8410a047bf9bc5f084ef135f8a59 Mon Sep 17 00:00:00 2001 From: devxb Date: Wed, 8 Jan 2025 22:58:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20chageGuild=EC=9D=98=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EB=A9=94=EC=8B=9C=EC=A7=80=EB=A5=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/org/gitanimals/guild/domain/GuildService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/gitanimals/guild/domain/GuildService.kt b/src/main/kotlin/org/gitanimals/guild/domain/GuildService.kt index de66357..d0cbfea 100644 --- a/src/main/kotlin/org/gitanimals/guild/domain/GuildService.kt +++ b/src/main/kotlin/org/gitanimals/guild/domain/GuildService.kt @@ -98,7 +98,7 @@ class GuildService( @Retryable(ObjectOptimisticLockingFailureException::class) fun changeGuild(changeRequesterId: Long, guildId: Long, request: ChangeGuildRequest) { val guild = guildRepository.findGuildByIdAndLeaderId(guildId, changeRequesterId) - ?: throw IllegalArgumentException("Cannot kick member cause your not a leader.") + ?: throw IllegalArgumentException("Cannot change guild cause your not a leader.") guild.change(request) }