瀏覽代碼

e.printStackTrace()

Him188 6 年之前
父節點
當前提交
c1785ca4bb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt

+ 1 - 0
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)
                     }
                 }