[Mobies-commit] [commit] r3830 - GReAT/trunk/Libraries/Engine

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Tue Aug 16 14:21:39 CDT 2011


Author: ksmyth
Date: Tue Aug 16 14:21:39 2011
New Revision: 3830

Log:
Better error message

Modified:
   GReAT/trunk/Libraries/Engine/GeneralBackend.cpp

Modified: GReAT/trunk/Libraries/Engine/GeneralBackend.cpp
==============================================================================
--- GReAT/trunk/Libraries/Engine/GeneralBackend.cpp	Tue Aug 16 14:21:07 2011	(r3829)
+++ GReAT/trunk/Libraries/Engine/GeneralBackend.cpp	Tue Aug 16 14:21:39 2011	(r3830)
@@ -468,13 +468,17 @@
 		{
 			assoInfo.strSrcRoleName = dstName;
 			assoInfo.strDstRoleName = srcName;
-			if(!dstObj.CreateLink(srcObj, assoInfo)) throw udm_exception("Create association fails.");
+			if(!dstObj.CreateLink(srcObj, assoInfo))
+				throw udm_exception("Create association failed with source rolename '" + dstName 
+				+ "' and destination rolename '" + srcName + "'");
 		}
 		else //if(dstCO.isAssociationClass())
 		{
 			assoInfo.strSrcRoleName = srcName;
 			assoInfo.strDstRoleName = dstName;
-			if(!srcObj.CreateLink(dstObj, assoInfo)) throw udm_exception("Create association fails.");
+			if(!srcObj.CreateLink(dstObj, assoInfo))
+				throw udm_exception("Create association failed with source rolename '" + srcName 
+				+ "' and destination rolename '" + dstName + "'");
 		}
 	}
 }


More information about the Mobies-commit mailing list