mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 05:54:26 +02:00
fix: Log the correct patch names
This commit is contained in:
parent
670f0153de
commit
9fdb8f087f
@ -153,7 +153,7 @@ class Patcher(
|
|||||||
patch: Patch<*>,
|
patch: Patch<*>,
|
||||||
executedPatches: LinkedHashMap<Patch<*>, PatchResult>
|
executedPatches: LinkedHashMap<Patch<*>, PatchResult>
|
||||||
): PatchResult {
|
): PatchResult {
|
||||||
val patchName = patch.name
|
val patchName = patch.name ?: patch.toString()
|
||||||
|
|
||||||
executedPatches[patch]?.let { patchResult ->
|
executedPatches[patch]?.let { patchResult ->
|
||||||
patchResult.exception ?: return patchResult
|
patchResult.exception ?: return patchResult
|
||||||
@ -171,7 +171,7 @@ class Patcher(
|
|||||||
result.exception?.let {
|
result.exception?.let {
|
||||||
return PatchResult(
|
return PatchResult(
|
||||||
patch,
|
patch,
|
||||||
PatchException("'$patchName' depends on '${dependency.name}' that raised an exception: $it")
|
PatchException("'$patchName' depends on '${dependency.name ?: dependency}' that raised an exception:\n$it")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user