[assimp/xml] Improved XML parse error message.

Fixed typo, added detail.
pull/3881/head
Jason C 2021-05-04 21:10:02 -04:00
parent ccd1a4455e
commit 6e65115253
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ public:
if (parse_result.status == pugi::status_ok) {
return true;
} else {
ASSIMP_LOG_DEBUG("Error while parse xml.");
std::ostringstream oss;
oss << "Error while parsing XML: " << parse_result.description() << " @ " << parse_result.offset;
ASSIMP_LOG_DEBUG(oss.str());
return false;
}
}