mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-11 22:06:20 +00:00
fix: Show path for missing files instead of just the name
This commit is contained in:
@@ -173,7 +173,7 @@ internal object PatchCommand : Runnable {
|
|||||||
if (!apk.exists()) {
|
if (!apk.exists()) {
|
||||||
throw CommandLine.ParameterException(
|
throw CommandLine.ParameterException(
|
||||||
spec.commandLine(),
|
spec.commandLine(),
|
||||||
"APK file ${apk.name} does not exist",
|
"APK file ${apk.path} does not exist",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
this.apk = apk
|
this.apk = apk
|
||||||
@@ -186,7 +186,7 @@ internal object PatchCommand : Runnable {
|
|||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
private fun setIntegrations(integrations: Array<File>) {
|
private fun setIntegrations(integrations: Array<File>) {
|
||||||
integrations.firstOrNull { !it.exists() }?.let {
|
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
|
this.integrations += integrations
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user