Commit 06852f1e authored by chrisgao@chromium.org's avatar chrisgao@chromium.org

[chromedriver] Fix a confusing error message.

When the target window was closed, new window commands will trigger reconnection to DevTools.
Thus, the original message is misleading.

BUG=none

Review URL: https://chromiumcodereview.appspot.com/23734005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222100 0039d316-1c4b-4281-b951-d872f2087c98
parent 0f5b2217
...@@ -260,10 +260,8 @@ Status DevToolsHttpClient::CloseFrontends(const std::string& for_client_id) { ...@@ -260,10 +260,8 @@ Status DevToolsHttpClient::CloseFrontends(const std::string& for_client_id) {
return status; return status;
const WebViewInfo* view_info = views_info.GetForId(for_client_id); const WebViewInfo* view_info = views_info.GetForId(for_client_id);
if (!view_info) { if (!view_info)
return Status(kDisconnected, return Status(kNoSuchWindow, "window was already closed");
"DevTools client closed during closing UI debuggers");
}
if (view_info->debugger_url.size()) if (view_info->debugger_url.size())
return Status(kOk); 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