diff options
author | ypodlesov <ypodlesov@yandex-team.com> | 2024-02-23 19:31:28 +0300 |
---|---|---|
committer | ypodlesov <ypodlesov@yandex-team.com> | 2024-02-23 19:43:18 +0300 |
commit | 4eaf62a9f1c7d659f5effcb6a5e53cf431a70daf (patch) | |
tree | ec14dc4ef102936aa0da92a58348834486236c10 | |
parent | 3005260aee3fd20ae0311f3a2efb765ba462ca41 (diff) | |
download | ydb-4eaf62a9f1c7d659f5effcb6a5e53cf431a70daf.tar.gz |
Add logg for string that was not parsed.
Add logg for string that was not parsed.
25aa9e299c9b879525a92d38661fa5a66d5c25a1
-rw-r--r-- | library/cpp/xml/document/xml-document.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/cpp/xml/document/xml-document.cpp b/library/cpp/xml/document/xml-document.cpp index 18a554d732..8e4c908589 100644 --- a/library/cpp/xml/document/xml-document.cpp +++ b/library/cpp/xml/document/xml-document.cpp @@ -82,8 +82,10 @@ namespace NXml { TDocHolder doc(xmlCtxtReadMemory(pctx.Get(), xml.c_str(), (int)xml.size(), nullptr, nullptr, XML_PARSE_NOCDATA)); - if (!doc) - THROW(XmlException, "Can't parse string"); + if (!doc) { + TString strToParse(xml.c_str(), (int)xml.size()); + THROW(XmlException, "Can't parse string") << " string: " << strToParse; + } Doc = std::move(doc); } |