Skip to content

Commit 4b2e323

Browse files
committedJul 3, 2022
fix: more useful error message
1 parent fb5b82d commit 4b2e323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/kotlin/app/revanced/patcher/Patcher.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class Patcher(private val options: PatcherOptions) {
268268

269269
if (result.isSuccess()) return@forEach
270270

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

0 commit comments

Comments
 (0)
Please sign in to comment.