fix: failed patch logging

This commit is contained in:
Canny 2022-11-29 18:54:34 +03:00
parent 160e42145c
commit b514c709fb
No known key found for this signature in database
GPG Key ID: 395CCB0AA979F27B

View File

@ -188,7 +188,7 @@ class PatchingScreenViewModel(
log(PatchLog.Info("Applying ${patches.size} $patchesString"))
patcher.executePatches().forEach { (patch, result) ->
if (result.isFailure) {
log(PatchLog.Info("Failed to apply $patch" + result.exceptionOrNull()!!.cause))
log(PatchLog.Info("Failed to apply $patch: " + "${result.exceptionOrNull()!!.message ?: result.exceptionOrNull()!!::class.simpleName}"))
return@forEach
}
}