mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-13 02:14:27 +01:00
fix: print full exception when patch fails
This commit is contained in:
parent
88bb3a8845
commit
7cf79e68e0
1 changed files with 4 additions and 3 deletions
|
@ -399,9 +399,10 @@ class Patcher(private val options: PatcherOptions) {
|
||||||
val result = executePatch(dependency, executedPatches)
|
val result = executePatch(dependency, executedPatches)
|
||||||
if (result.isSuccess()) return@forEach
|
if (result.isSuccess()) return@forEach
|
||||||
|
|
||||||
val error = result.error()!!
|
return PatchResultError(
|
||||||
val errorMessage = error.cause ?: error.message
|
"'$patchName' depends on '${dependency.patchName}' but the following error was raised: " +
|
||||||
return PatchResultError("'$patchName' depends on '${dependency.patchName}' but the following error was raised: $errorMessage")
|
result.error()!!.let { it.cause?.stackTraceToString() ?: it.message }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
val isResourcePatch = ResourcePatch::class.java.isAssignableFrom(patchClass)
|
val isResourcePatch = ResourcePatch::class.java.isAssignableFrom(patchClass)
|
||||||
|
|
Loading…
Reference in a new issue