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") ) } }