mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-09-06 06:25:30 +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…
Reference in New Issue
Block a user