Commit 1d522e4e authored by Caleb Rouleau's avatar Caleb Rouleau Committed by Commit Bot

[ChromeDriver] Updated error message for old adb version.

Bug: chromedriver:2436
Change-Id: If5ec3d6b6219a7d044ecf62498c6db378de8aba5
Reviewed-on: https://chromium-review.googlesource.com/1077171
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562608}
parent 17eb6109
......@@ -140,9 +140,14 @@ Status AdbImpl::ForwardPort(const std::string& device_serial,
adb_command_status.message());
base::StringToInt(response, local_port_output);
if (*local_port_output == 0) {
return Status(kUnknownError, "Failed to forward ports to device " +
device_serial +
". No port chosen: " + response + ".");
return Status(
kUnknownError,
"Failed to forward ports to device " + device_serial +
". No port chosen: " + response +
". Perhaps your adb version is out of date. "
"ChromeDriver 2.39 and newer require adb version 1.0.38 or newer. "
"Run 'adb version' in your terminal of the host device to find "
"your version of adb.");
}
return Status(kOk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment