[Mobies-commit] [commit] r4321 - UDM/trunk/src/UML GME/Interpreter

ksmyth at redhat3.isis.vanderbilt.edu ksmyth at redhat3.isis.vanderbilt.edu
Wed Sep 24 09:50:48 CDT 2014


Author: ksmyth
Date: Wed Sep 24 09:50:47 2014
New Revision: 4321

Log:
Dont pop up blank MessageBox

Modified:
   UDM/trunk/src/UML GME/Interpreter/BONComponent.cpp

Modified: UDM/trunk/src/UML GME/Interpreter/BONComponent.cpp
==============================================================================
--- UDM/trunk/src/UML GME/Interpreter/BONComponent.cpp	Wed Sep 24 09:50:42 2014	(r4320)
+++ UDM/trunk/src/UML GME/Interpreter/BONComponent.cpp	Wed Sep 24 09:50:47 2014	(r4321)
@@ -303,10 +303,13 @@
 	{
 		std::string err = e.what();
 		//do we have stg to say?
-		if (!(param & GME_SILENT_MODE))
-			AfxMessageBox(err.c_str());
-		else
-			std::cerr << err << std::endl;
+		if (err != "")
+		{
+			if (!(param & GME_SILENT_MODE))
+				AfxMessageBox(err.c_str());
+			else
+				std::cerr << err << std::endl;
+		}
 	}
 	catch (udm_exception &e)
 	{


More information about the Mobies-commit mailing list