Remove superfluous newlines in Schema exception messages.
PiperOrigin-RevId: 704781176 Change-Id: Ie23ac2deab4a5173e1e7a60ffe9e751fe054a2dc
This commit is contained in:
committed by
Copybara-Service
parent
f4593d5d79
commit
049a260102
@@ -837,15 +837,13 @@ void mjXReader::PrintSchema(std::stringstream& str, bool html, bool pad) {
|
|||||||
void mjXReader::Parse(XMLElement* root, const mjVFS* vfs) {
|
void mjXReader::Parse(XMLElement* root, const mjVFS* vfs) {
|
||||||
// check schema
|
// check schema
|
||||||
if (!schema.GetError().empty()) {
|
if (!schema.GetError().empty()) {
|
||||||
throw mjXError(0, "XML Schema Construction Error: %s\n",
|
throw mjXError(0, "XML Schema Construction Error: %s", schema.GetError().c_str());
|
||||||
schema.GetError().c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate
|
// validate
|
||||||
XMLElement* bad = 0;
|
XMLElement* bad = 0;
|
||||||
if ((bad = schema.Check(root, 0))) {
|
if ((bad = schema.Check(root, 0))) {
|
||||||
throw mjXError(bad, "Schema violation: %s\n",
|
throw mjXError(bad, "Schema violation: %s", schema.GetError().c_str());
|
||||||
schema.GetError().c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// get model name
|
// get model name
|
||||||
|
|||||||
Reference in New Issue
Block a user