Skip to content

Commit

Permalink
fix(cli): actually check if there are multiple android devices connected
Browse files Browse the repository at this point in the history
regression from #10604
  • Loading branch information
lucasfernog committed Aug 15, 2024
1 parent d0510f5 commit d41e5c9
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 d41e5c9

Please sign in to comment.