From 9fdb8f087f62babf6081879db65c80db639aa0a7 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 13 Sep 2023 03:35:39 +0200 Subject: [PATCH] fix: Log the correct patch names --- .../src/main/kotlin/app/revanced/patcher/Patcher.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt index 46a2f01..db5f650 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -153,7 +153,7 @@ class Patcher( patch: Patch<*>, executedPatches: LinkedHashMap, 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") ) } }