summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-08-23 16:51:12 -0500
committerYifan Hong2017-08-24 12:18:35 -0500
commitb4c753f6244de4f1df8f3a4ed6956f07041dc20e (patch)
tree6bbdfaebfae796bd1084122c77faec0ce40ac681
parentd776d20386b03780f31856dcee687c5f3187aa3e (diff)
downloadplatform-system-libvintf-b4c753f6244de4f1df8f3a4ed6956f07041dc20e.tar.gz
platform-system-libvintf-b4c753f6244de4f1df8f3a4ed6956f07041dc20e.tar.xz
platform-system-libvintf-b4c753f6244de4f1df8f3a4ed6956f07041dc20e.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 152c441..f56e01a 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 }