fix: print stacktrace on failed patches

This commit is contained in:
Canny 2022-11-29 19:13:05 +03:00
parent b514c709fb
commit 25a92bc8e0
No known key found for this signature in database
GPG Key ID: 395CCB0AA979F27B

View File

@ -189,6 +189,7 @@ class PatchingScreenViewModel(
patcher.executePatches().forEach { (patch, result) ->
if (result.isFailure) {
log(PatchLog.Info("Failed to apply $patch: " + "${result.exceptionOrNull()!!.message ?: result.exceptionOrNull()!!::class.simpleName}"))
result.exceptionOrNull()!!.printStackTrace()
return@forEach
}
}