fix(cli): actually check if there are multiple android devices connected (#10642)

This commit is contained in:
Lucas Fernandes Nogueira 2024-08-15 22:12:34 -03:00 committed by GitHub
parent d0510f52eb
commit 255d64e3dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ pub fn command(options: Options) -> Result<()> {
device.name(),
)
})?;
} else {
} else if devices.len() > 1 {
anyhow::bail!("Multiple Android devices are connected ({}), please disconnect devices you do not intend to use so Tauri can determine which to use",
devices.iter().map(|d| d.name()).collect::<Vec<_>>().join(", "));
}