feat: improve patch fail logging

This commit is contained in:
Ushie 2022-12-12 17:03:00 +03:00
parent fe629ce77c
commit c81acce31c

View File

@ -196,7 +196,7 @@ class MainActivity : FlutterActivity() {
}
return@forEach
}
val msg = "$patch failed.\nError:\n" + res.exceptionOrNull()!!.printStackTrace()
val msg = "Failed to apply $patch: " + "${res.exceptionOrNull()!!.message ?: res.exceptionOrNull()!!::class.simpleName}"
handler.post {
installerChannel.invokeMethod(
"update",