fix: Show path for missing files instead of just the name

This commit is contained in:
oSumAtrIX 2024-03-11 10:05:04 +01:00
parent 48a1a39b94
commit f0f3e5614b
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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
}