Skip to content

Commit f0f3e56

Browse files
committed
fix: Show path for missing files instead of just the name
1 parent 48a1a39 commit f0f3e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/app/revanced/cli/command/PatchCommand.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ internal object PatchCommand : Runnable {
173173
if (!apk.exists()) {
174174
throw CommandLine.ParameterException(
175175
spec.commandLine(),
176-
"APK file ${apk.name} does not exist",
176+
"APK file ${apk.path} does not exist",
177177
)
178178
}
179179
this.apk = apk
@@ -186,7 +186,7 @@ internal object PatchCommand : Runnable {
186186
@Suppress("unused")
187187
private fun setIntegrations(integrations: Array<File>) {
188188
integrations.firstOrNull { !it.exists() }?.let {
189-
throw CommandLine.ParameterException(spec.commandLine(), "Integrations file ${it.name} does not exist.")
189+
throw CommandLine.ParameterException(spec.commandLine(), "Integrations file ${it.path} does not exist.")
190190
}
191191
this.integrations += integrations
192192
}

0 commit comments

Comments
 (0)