Skip to content

Commit

Permalink
fix: more useful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 3, 2022
1 parent fb5b82d commit 4b2e323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class Patcher(private val options: PatcherOptions) {

if (result.isSuccess()) return@forEach

val errorMessage = result.error()!!.message
val errorMessage = result.error()!!.cause
return PatchResultError("'$patchName' depends on '${patchDependency.patchName}' but the following error was raised: $errorMessage")
}

Expand Down

0 comments on commit 4b2e323

Please sign in to comment.