mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 19:47:10 +00:00
fix(ios): propagate error from BootedUDID instead of silently swallowing
This commit is contained in:
1 parent
55ad503856
commit
071fe3e521
3 files changed
+17
-7
No files matched your search
@@ -41,7 +41,11 @@ func buildDriver(ctx context.Context, options Options, stdout io.Writer) (driver
|
||||
"--platform", options.Platform,
|
||||
}
|
||||
if options.Platform == "ios" {
|
||||
if udid := ios.BootedUDID(ctx); udid != "" {
|
||||
udid, err := ios.BootedUDID(ctx)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("find booted simulator: %w", err)
|
||||
}
|
||||
if udid != "" {
|
||||
sidecarArgs = append(sidecarArgs, "--udid", udid)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user