Browse Source

Mention ANDROID_SERIAL if multiple devices are connected

pull/75/head
j.r 3 years ago
parent
commit
61cea25ef8
No known key found for this signature in database
GPG Key ID: E74A18B933F9145E
  1. 2
      devices.go

2
devices.go

@ -64,7 +64,7 @@ func maybeOneDevice() (*adb.Device, error) {
return nil, fmt.Errorf("ANDROID_SERIAL set, but no device with this serial found")
}
if len(devices) > 1 {
return nil, fmt.Errorf("at most one connected device can be used")
return nil, fmt.Errorf("at most one connected device can be used, if ANDROID_SERIAL was not set")
}
return devices[0], nil
}

Loading…
Cancel
Save