Skip to content

Commit

Permalink
fix(cli): actually check if there are multiple android devices connec…
Browse files Browse the repository at this point in the history
…ted (#10642)
  • Loading branch information
lucasfernog committed Aug 16, 2024
1 parent d0510f5 commit 255d64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooling/cli/src/mobile/android/android_studio_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(", "));
}
Expand Down

0 comments on commit 255d64e

Please sign in to comment.