Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7948)

Unified Diff: chrome/test/chromedriver/chrome/devtools_http_client.cc

Issue 23734005: [chromedriver] Fix a confusing error message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/devtools_http_client.cc
diff --git a/chrome/test/chromedriver/chrome/devtools_http_client.cc b/chrome/test/chromedriver/chrome/devtools_http_client.cc
index 8bdff444db0f128a6ef15e348557c7554a267ddd..f2b2d1c5c5a4a19816559cf0973e7d503e9af9b9 100644
--- a/chrome/test/chromedriver/chrome/devtools_http_client.cc
+++ b/chrome/test/chromedriver/chrome/devtools_http_client.cc
@@ -260,10 +260,8 @@ Status DevToolsHttpClient::CloseFrontends(const std::string& for_client_id) {
return status;
const WebViewInfo* view_info = views_info.GetForId(for_client_id);
- if (!view_info) {
- return Status(kDisconnected,
- "DevTools client closed during closing UI debuggers");
- }
+ if (!view_info)
+ return Status(kNoSuchWindow, "window was already closed");
if (view_info->debugger_url.size())
return Status(kOk);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698