[commit] r1650 - trunk/GME/Console

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Oct 26 12:18:16 CDT 2011


Author: ksmyth
Date: Wed Oct 26 12:18:14 2011
New Revision: 1650

Log:
Fix exception handling

Modified:
   trunk/GME/Console/ScriptEdit.cpp

Modified: trunk/GME/Console/ScriptEdit.cpp
==============================================================================
--- trunk/GME/Console/ScriptEdit.cpp	Wed Oct 26 10:18:58 2011	(r1649)
+++ trunk/GME/Console/ScriptEdit.cpp	Wed Oct 26 12:18:14 2011	(r1650)
@@ -173,6 +173,7 @@
 	{ 
 		TCHAR s[1000];
 		_stprintf_s(s, _T("Scripting Error: 0x%x"), e.Error());
+		m_console->Message(s, MSG_ERROR);
 		_ftprintf(stderr, _T("%s"), s);
 	}
 }
@@ -188,6 +189,14 @@
 		TCHAR s[1000];
 		_stprintf_s(s, _T("Scripting Error: 0x%x"), e.hr);
 		m_console->Message(s, MSG_ERROR);
+		_ftprintf(stderr, _T("%s"), s);
+	}
+	catch(_com_error &e) 
+	{ 
+		TCHAR s[1000];
+		_stprintf_s(s, _T("Scripting Error: 0x%x"), e.Error());
+		m_console->Message(s, MSG_ERROR);
+		_ftprintf(stderr, _T("%s"), s);
 	}
 }
 


More information about the gme-commit mailing list