[Orxonox-commit 4991] r9660 - code/branches/core6/src/libraries/core/class

landauf at orxonox.net landauf at orxonox.net
Sun Aug 18 17:01:40 CEST 2013


Author: landauf
Date: 2013-08-18 17:01:40 +0200 (Sun, 18 Aug 2013)
New Revision: 9660

Modified:
   code/branches/core6/src/libraries/core/class/IdentifierManager.cc
Log:
enhanced error message if RegisterObject is missing

Modified: code/branches/core6/src/libraries/core/class/IdentifierManager.cc
===================================================================
--- code/branches/core6/src/libraries/core/class/IdentifierManager.cc	2013-08-18 14:57:51 UTC (rev 9659)
+++ code/branches/core6/src/libraries/core/class/IdentifierManager.cc	2013-08-18 15:01:40 UTC (rev 9660)
@@ -120,7 +120,7 @@
                     this->identifiersOfNewObject_.clear();
                     Identifiable* temp = it->second->fabricate(&temporaryContext);
                     if (temp->getIdentifier() != it->second)
-                        orxout(internal_error) << "Newly created object has unexpected identifier" << endl;
+                        orxout(internal_error) << "Newly created object of type " << it->second->getName() << " has unexpected identifier. Did you forget to use RegisterObject(classname)?" << endl;
                     delete temp;
 
                     it->second->initializeParents(this->identifiersOfNewObject_);




More information about the Orxonox-commit mailing list