From c1785ca4bbc5ed29c5836959b1c06c6bbf10143d Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 20 Nov 2019 19:39:26 +0800 Subject: [PATCH] e.printStackTrace() --- .../mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt b/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt index 94e5a17cd..9d79fc140 100644 --- a/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt +++ b/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt @@ -76,6 +76,7 @@ suspend fun main() { image.downloadTo(newTestTempFile(suffix = ".png").also { reply("Temp file: ${it.absolutePath}") }) reply(image.id.value + " downloaded") } catch (e: Exception) { + e.printStackTrace() reply(e.message ?: e::class.java.simpleName) } }