summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-08-23 16:51:12 -0500
committerYifan Hong2017-08-24 12:16:04 -0500
commite8d3216329695f9699943371eefb7e3ea1f4b80d (patch)
tree78aa38fe21b9aa4421ad4ec467994c6114b63b6f
parentd3650ea0db3fe82fb5f85a1012697cc272625847 (diff)
downloadplatform-system-libvintf-e8d3216329695f9699943371eefb7e3ea1f4b80d.tar.gz
platform-system-libvintf-e8d3216329695f9699943371eefb7e3ea1f4b80d.tar.xz
platform-system-libvintf-e8d3216329695f9699943371eefb7e3ea1f4b80d.zip
Improve error messages in parse_xml.cpp
Test: pass Bug: 64124223 Change-Id: I8fdd8e0a2e3b96725c30339dcbdcaff848322cf4 Merged-In: I8fdd8e0a2e3b96725c30339dcbdcaff848322cf4
-rw-r--r--parse_xml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_xml.cpp b/parse_xml.cpp
index df3cb54..f524fb8 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -244,8 +244,8 @@ struct XmlNodeConverter : public XmlConverter<Object> {
244 std::string attrText; 244 std::string attrText;
245 bool ret = getAttr(root, attrName, &attrText) && ::android::vintf::parse(attrText, attr); 245 bool ret = getAttr(root, attrName, &attrText) && ::android::vintf::parse(attrText, attr);
246 if (!ret) { 246 if (!ret) {
247 mLastError = "Could not find/parse attr with name \"" + attrName + "\" for element <" 247 mLastError = "Could not find/parse attr with name \"" + attrName + "\" and value \"" +
248 + elementName() + ">"; 248 attrText + "\" for element <" + elementName() + ">";
249 } 249 }
250 return ret; 250 return ret;
251 } 251 }