diff options
Diffstat (limited to 'cpp/src/XMLTransform/XMLTransform.cpp')
-rw-r--r-- | cpp/src/XMLTransform/XMLTransform.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/XMLTransform/XMLTransform.cpp b/cpp/src/XMLTransform/XMLTransform.cpp index 4a8ea703559..d6aae1dfceb 100644 --- a/cpp/src/XMLTransform/XMLTransform.cpp +++ b/cpp/src/XMLTransform/XMLTransform.cpp @@ -1107,12 +1107,10 @@ public: // string id = getAttributeByName(node, "id"); assert(!id.empty()); -#ifndef NDEBUG MissingTypeMap::const_iterator q = map.find(id); assert(q != map.end()); -#endif MissingTypeException ex(__FILE__, __LINE__); - ex.reason = "unable to find a transformation for type `" + n + "'"; + ex.reason = "unable to find a transformation for type `" + q->second + "'"; throw ex; } p->second->transform(os, info, name, node, map); |