Skip to content

Commit

Permalink
fix: Show path for missing files instead of just the name
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Mar 11, 2024
1 parent 48a1a39 commit f0f3e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ internal object PatchCommand : Runnable {
if (!apk.exists()) {
throw CommandLine.ParameterException(
spec.commandLine(),
"APK file ${apk.name} does not exist",
"APK file ${apk.path} does not exist",
)
}
this.apk = apk
Expand All @@ -186,7 +186,7 @@ internal object PatchCommand : Runnable {
@Suppress("unused")
private fun setIntegrations(integrations: Array<File>) {
integrations.firstOrNull { !it.exists() }?.let {
throw CommandLine.ParameterException(spec.commandLine(), "Integrations file ${it.name} does not exist.")
throw CommandLine.ParameterException(spec.commandLine(), "Integrations file ${it.path} does not exist.")
}
this.integrations += integrations
}
Expand Down

0 comments on commit f0f3e56

Please sign in to comment.