mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: show error message if cause is null
This commit is contained in:
parent
b19e1131e8
commit
f9da2ad531
1 changed files with 2 additions and 1 deletions
|
@ -276,7 +276,8 @@ class Patcher(private val options: PatcherOptions) {
|
|||
|
||||
if (result.isSuccess()) return@forEach
|
||||
|
||||
val errorMessage = result.error()!!.cause
|
||||
val error = result.error()!!
|
||||
val errorMessage = error.cause ?: error.message
|
||||
return PatchResultError("'$patchName' depends on '${patchDependency.patchName}' but the following error was raised: $errorMessage")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue