From 17a5d3821f20008bc9bd7cfc2d1f3392413190d8 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 4 Mar 2021 14:50:44 +0800 Subject: [PATCH] Fix error message when sending message --- .../src/commonMain/kotlin/contact/SendMessageHandler.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/contact/SendMessageHandler.kt b/mirai-core/src/commonMain/kotlin/contact/SendMessageHandler.kt index cbc96e5ca..6a0fbe68d 100644 --- a/mirai-core/src/commonMain/kotlin/contact/SendMessageHandler.kt +++ b/mirai-core/src/commonMain/kotlin/contact/SendMessageHandler.kt @@ -156,11 +156,11 @@ internal abstract class SendMessageHandler { } } check(resp is MessageSvcPbSendMsg.Response.SUCCESS) { - "Send group message failed: $resp" + "Send message failed: $resp" } } is MusicSharePacket.Response -> { - resp.pkg.checkSuccess("send group music share") + resp.pkg.checkSuccess("send music share") source = constructSourceFromMusicShareResponse(finalMessage, resp) } @@ -175,7 +175,7 @@ internal abstract class SendMessageHandler { source!!.ensureSequenceIdAvailable() } catch (e: Exception) { bot.network.logger.warning( - "Timeout awaiting sequenceId for group message(${finalMessage.content.take(10)}). Some features may not work properly", + "Timeout awaiting sequenceId for message(${finalMessage.content.take(10)}). Some features may not work properly", e )