mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-11 20:57:49 +01:00
fix: Show path for missing files instead of just the name
This commit is contained in:
parent
48a1a39b94
commit
f0f3e5614b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user