From f96bb29173e3572a73963aa48f85a496a874208c Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 26 Nov 2002 20:36:38 +0000 Subject: minor bug fix --- cpp/src/XMLTransform/XMLTransform.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/src/XMLTransform/XMLTransform.cpp') 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); -- cgit v1.2.3