[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdesdk/umbrello/umbrello
From: Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date: 2007-07-18 20:27:34
Message-ID: 1184790454.828048.11814.nullmailer () svn ! kde ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic