mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 21:54:24 +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<*>,
|
||||
executedPatches: LinkedHashMap<Patch<*>, PatchResult>
|
||||
): PatchResult {
|
||||
val patchName = patch.name
|
||||
val patchName = patch.name ?: patch.toString()
|
||||
|
||||
executedPatches[patch]?.let { patchResult ->
|
||||
patchResult.exception ?: return patchResult
|
||||
@ -171,7 +171,7 @@ class Patcher(
|
||||
result.exception?.let {
|
||||
return PatchResult(
|
||||
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