diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/InputUtils.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/InputUtils.kt index d96845200..e080637b6 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/InputUtils.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/InputUtils.kt @@ -141,7 +141,7 @@ fun Map.printTLVMap(name: String = "", keyLength: Int = 1) = }) @Suppress("NOTHING_TO_INLINE") -internal inline fun unsupported(): Nothing = error("Unsupported") +internal inline fun unsupported(message: String? = null): Nothing = error(message ?: "Unsupported") @Suppress("NOTHING_TO_INLINE") internal inline fun illegalArgument(message: String? = null): Nothing = error(message ?: "Illegal argument passed")