[Mobies-commit] [commit] r4341 - GReAT/trunk/Tools/CodeGenerator/ConfigGenerator

ksmyth at redhat3.isis.vanderbilt.edu ksmyth at redhat3.isis.vanderbilt.edu
Wed Oct 15 13:17:46 CDT 2014


Author: ksmyth
Date: Wed Oct 15 13:17:46 2014
New Revision: 4341

Log:
Generated exe: return exit code 2 on udm_exception, make it clear that a udm_exception happened

Modified:
   GReAT/trunk/Tools/CodeGenerator/ConfigGenerator/ConfigGenerator.cpp

Modified: GReAT/trunk/Tools/CodeGenerator/ConfigGenerator/ConfigGenerator.cpp
==============================================================================
--- GReAT/trunk/Tools/CodeGenerator/ConfigGenerator/ConfigGenerator.cpp	Wed Oct 15 10:27:10 2014	(r4340)
+++ GReAT/trunk/Tools/CodeGenerator/ConfigGenerator/ConfigGenerator.cpp	Wed Oct 15 13:17:46 2014	(r4341)
@@ -281,7 +281,8 @@
 	// create try-catch block for udm exceptions.
 	TryCatchBlock* udmExBlock= new TryCatchBlock;
 	udmExBlock->_catchExpr= "udm_exception &e";
-	udmExBlock->addCatch( *new Expression( "cout << e.what() << endl"));
+	udmExBlock->addCatch( *new Expression( "cout << \"Udm exception: \" << e.what() << endl"));
+	udmExBlock->addCatch( *new Expression( "return 2"));
 	mainFunc->add( *udmExBlock);
 	// main function return value
 	mainFunc->add( *new Expression( "return 0"));


More information about the Mobies-commit mailing list