Commit 565ae4c5 authored by craigdh@chromium.org's avatar craigdh@chromium.org

Fixed a bug where pyautolib.cc did not log the automation error message.

BUG=None
TEST=functional/browser.py
R=nirnimesh@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149956 0039d316-1c4b-4281-b951-d872f2087c98
parent e6281bba
...@@ -271,11 +271,10 @@ void PyUITestBase::ErrorResponse( ...@@ -271,11 +271,10 @@ void PyUITestBase::ErrorResponse(
const std::string& request, const std::string& request,
std::string* response) { std::string* response) {
base::DictionaryValue error_dict; base::DictionaryValue error_dict;
LOG(ERROR) << "Error during automation: " << *response; std::string error_msg = StringPrintf("%s for %s", error_string.c_str(),
error_dict.SetString("error", request.c_str());
StringPrintf("%s for %s", LOG(ERROR) << "Error during automation: " << error_msg;
error_string.c_str(), error_dict.SetString("error", error_msg);
request.c_str()));
base::JSONWriter::Write(&error_dict, response); base::JSONWriter::Write(&error_dict, response);
} }
......
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