From 996438ec33774b76910a34c704b469a518ff3bfb Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Sun, 3 Feb 2019 14:33:13 +0100 Subject: [PATCH] report the key of xml parser registration object --- alib2xml/src/core/xmlApi.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alib2xml/src/core/xmlApi.hpp b/alib2xml/src/core/xmlApi.hpp index 0ec6a3a6e2..dfa6121f9d 100644 --- a/alib2xml/src/core/xmlApi.hpp +++ b/alib2xml/src/core/xmlApi.hpp @@ -105,11 +105,12 @@ private: public: template < class Type > static void unregisterXmlReader ( ) { - if ( ! parseFunctions ( ).erase ( xmlApi < Type >::xmlTagName ( ) ) ) { + const std::string & tagName = xmlApi < Type >::xmlTagName ( ); + if ( ! parseFunctions ( ).erase ( tagName ) ) { std::string groupName = ext::to_string < object::Object > ( ); std::string typeName = ext::to_string < Type > ( ); - throw::exception::CommonException ( "Parse callback of " + typeName + " not registered in group " + groupName + "." ); + throw::exception::CommonException ( "Parse callback of " + typeName + " identified as " + tagName + " not registered in group " + groupName + "." ); } } -- GitLab