mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-04-30 06:34:29 +02:00
refactor: logging and exception strings
This commit is contained in:
parent
61d3b99313
commit
04805e45fe
@ -20,7 +20,7 @@ internal class Adb(
|
|||||||
?: throw IllegalArgumentException("No such device with name $deviceName")
|
?: throw IllegalArgumentException("No such device with name $deviceName")
|
||||||
|
|
||||||
if (!modeInstall && device.run("su -h", false) != 0)
|
if (!modeInstall && device.run("su -h", false) != 0)
|
||||||
throw IllegalArgumentException("Root required on $deviceName. Deploying failed.")
|
throw IllegalArgumentException("Root required on $deviceName. Deploying failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun String.replacePlaceholder(with: String? = null): String {
|
private fun String.replacePlaceholder(with: String? = null): String {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user