Fix unknown resource type error message

Instead of printing the tag name, print the type name when the type was
unable to be recognized. The type name is initialized to the tag name
and changes when a type attribute is defined..

Bug: 37891551
Test: manual
Change-Id: I9b0e6a6f2d96a8c5af71fbca8e83c947a8e308bf
This commit is contained in:
Ryan Mitchell
2019-04-26 01:16:52 -07:00
parent 4848dd5e2d
commit 2e2c3b6220

View File

@@ -693,7 +693,7 @@ bool ResourceParser::ParseResource(xml::XmlPullParser* parser,
// If the resource type was not recognized, write the error and return false.
diag_->Error(DiagMessage(out_resource->source)
<< "unknown resource type '" << parser->element_name() << "'");
<< "unknown resource type '" << resource_type << "'");
return false;
}