Remove superfluous newlines in Schema exception messages.

PiperOrigin-RevId: 704781176
Change-Id: Ie23ac2deab4a5173e1e7a60ffe9e751fe054a2dc
This commit is contained in:
Yuval Tassa
2024-12-10 11:17:51 -08:00
committed by Copybara-Service
parent f4593d5d79
commit 049a260102
+2 -4
View File
@@ -837,15 +837,13 @@ void mjXReader::PrintSchema(std::stringstream& str, bool html, bool pad) {
void mjXReader::Parse(XMLElement* root, const mjVFS* vfs) {
// check schema
if (!schema.GetError().empty()) {
throw mjXError(0, "XML Schema Construction Error: %s\n",
schema.GetError().c_str());
throw mjXError(0, "XML Schema Construction Error: %s", schema.GetError().c_str());
}
// validate
XMLElement* bad = 0;
if ((bad = schema.Check(root, 0))) {
throw mjXError(bad, "Schema violation: %s\n",
schema.GetError().c_str());
throw mjXError(bad, "Schema violation: %s", schema.GetError().c_str());
}
// get model name