[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed Jul 18 20:27:34 UTC 2007


SVN commit 689658 by okellogg:

add usefulness to error messages

 M  +4 -4      umlrole.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlrole.cpp #689657:689658
@@ -64,9 +64,9 @@
     // parent objects. In fact, there is probably good reason
     // to only take UMLClassifiers here, but I'll leave it more open
     // for the time being. -b.t.
-    if(obj && dynamic_cast<UMLRole*>(obj))
-    {
-        kError()<<"ERROR: UMLRole cant setObject() to another UMLRole!, ignoring"<<endl;
+    if (obj && dynamic_cast<UMLRole*>(obj)) {
+        kError() << "UMLRole(" << ID2STR(m_nId) << ") cannot setObject() to another UMLRole("
+            << ID2STR(obj->getID()) << ")" << endl;
         return;
     }
 
@@ -253,7 +253,7 @@
     if (!m_Multi.isEmpty())
         kDebug() << "UMLRole::load(" << m_Name << "): m_Multi is " << m_Multi << endl;
     if (m_SecondaryId.isEmpty()) {
-        kError() << "UMLRole::load: type not given or illegal" << endl;
+        kError() << "UMLRole::load(" << m_Name << "): type not given or illegal" << endl;
         return false;
     }
     UMLObject * obj;




More information about the umbrello-devel mailing list