mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-03 18:33:55 +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()) {
|
||||
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<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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user