Merge pull request #1486 from petrhosek/json-stacktrace
Use a full message in the JSON output for failures
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 15cc907..74c43a4 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -4012,9 +4012,9 @@
const std::string location =
internal::FormatCompilerIndependentFileLocation(part.file_name(),
part.line_number());
- const std::string summary = EscapeJson(location + "\n" + part.summary());
+ const std::string message = EscapeJson(location + "\n" + part.message());
*stream << kIndent << " {\n"
- << kIndent << " \"failure\": \"" << summary << "\",\n"
+ << kIndent << " \"failure\": \"" << message << "\",\n"
<< kIndent << " \"type\": \"\"\n"
<< kIndent << " }";
}