mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 00:20:09 +08:00
e.printStackTrace()
This commit is contained in:
parent
2b1725b7f4
commit
c1785ca4bb
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user