From f0f3e5614b99b34391e0492177706f9c09781cad Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 11 Mar 2024 10:05:04 +0100 Subject: [PATCH] fix: Show path for missing files instead of just the name --- src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt index e77fb11..b9ca098 100644 --- a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt @@ -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 @@ -186,7 +186,7 @@ internal object PatchCommand : Runnable { @Suppress("unused") private fun setIntegrations(integrations: Array) { 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 }