Browse Source

[assimp/xml] Improved XML parse error message.

Fixed typo, added detail.
Jason C 4 years ago
parent
commit
6e65115253
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/assimp/XmlParser.h

+ 3 - 1
include/assimp/XmlParser.h

@@ -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;
         }
     }