From 6db2c23a1729b64e703b3561572afd176740fd9f Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 9 May 2020 17:16:24 +0800 Subject: [PATCH] Improve exception message --- mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotImpl.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotImpl.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotImpl.kt index ab4a1b724..a8e8fcc84 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotImpl.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotImpl.kt @@ -24,7 +24,6 @@ import net.mamoe.mirai.network.closeAndJoin import net.mamoe.mirai.utils.* import net.mamoe.mirai.utils.internal.retryCatching import kotlin.coroutines.CoroutineContext -import kotlin.time.Duration import kotlin.time.ExperimentalTime import kotlin.time.measureTime @@ -71,7 +70,7 @@ abstract class BotImpl constructor( } } } - throw NoSuchElementException() + throw NoSuchElementException(qq.toString()) } }