1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

fix: cause info

This commit is contained in:
cssxsh 2023-07-26 01:25:59 +08:00
parent d9755b3f5d
commit 2d3fffadad
No known key found for this signature in database
GPG Key ID: 92849F91CA9D8ECE

View File

@ -41,7 +41,7 @@ public sealed class AutoLoginEvent : BotEvent, ConsoleEvent, AbstractEvent() {
public val cause: Throwable
) : AutoLoginEvent() {
override fun toString(): String {
return "AutoLoginEvent.Failure(bot=${bot.id}, protocol=${bot.configuration.protocol}, message=${cause.message})"
return "AutoLoginEvent.Failure(bot=${bot.id}, protocol=${bot.configuration.protocol}, cause=${cause})"
}
}
}