It fixes ParseManifestTest.HandlesBrokenManifestFile from parser_unittest
Change-Id: I12fa75f728bf216d22e4ba5e8cc323bc62af20ec
const char kErrMsgNoPath[] = "Path not specified";
const char kErrMsgInvalidPath[] = "Invalid path";
-const char kErrMsgInvalidXml[] = "Invalid xml file";
} // namespace
manifest_ =
parser::LoadManifest(manifest_path.string(), &error_, constraints);
- if (!manifest_.get()) {
- SetError(kErrMsgInvalidXml, &error_);
+ if (!manifest_.get())
return false;
- }
if (!ParseManifestData(&error_))
return false;
if (!ValidateAppManifest(&error_))