[Mobies-commit] [commit] r4388 - UDM/trunk/src/UML GME/Interpreter
ksmyth at svn.isis.vanderbilt.edu
ksmyth at svn.isis.vanderbilt.edu
Tue May 16 15:46:40 CDT 2017
Author: ksmyth
Date: Tue May 16 15:46:39 2017
New Revision: 4388
Log:
MetaGME2Uml: return FAILED HRESULT under silent mode
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 Mon Apr 3 10:29:28 2017 (r4387)
+++ UDM/trunk/src/UML GME/Interpreter/BONComponent.cpp Tue May 16 15:46:39 2017 (r4388)
@@ -307,8 +307,10 @@
{
if (!(param & GME_SILENT_MODE))
AfxMessageBox(err.c_str());
- else
+ else {
std::cerr << err << std::endl;
+ throw (HRESULT)E_FAIL;
+ }
}
}
catch (udm_exception &e)
@@ -316,9 +318,11 @@
std::string err = std::string("Caught udm_exception in UML2XML: \"") + e.what() + "\"";
GMEConsole::Console::SetupConsole(builder.GetProject());
GMEConsole::Console::Error::WriteLine(err.c_str());
+ GMEConsole::Console::ReleaseConsole();
if (!(param & GME_SILENT_MODE))
AfxMessageBox(err.c_str());
- GMEConsole::Console::ReleaseConsole();
+ else
+ throw (HRESULT)E_FAIL;
}
}
More information about the Mobies-commit
mailing list