[commit] r2295 - trunk/GME/Parser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Aug 19 12:56:18 CDT 2013
Author: ksmyth
Date: Mon Aug 19 12:56:18 2013
New Revision: 2295
Log:
Error message for duplicate GUID in xme
Modified:
trunk/GME/Parser/MgaParser.cpp
Modified: trunk/GME/Parser/MgaParser.cpp
==============================================================================
--- trunk/GME/Parser/MgaParser.cpp Mon Aug 19 12:56:01 2013 (r2294)
+++ trunk/GME/Parser/MgaParser.cpp Mon Aug 19 12:56:18 2013 (r2295)
@@ -606,6 +606,11 @@
CComBstrObj &mgaid = id_lookup[id];
ASSERT( mgaid.p == NULL );
+ if (mgaid.p != NULL)
+ {
+ std::wstring err = L"Duplicate id '" + id + L"'";
+ throw_com_error(E_MGA_INVALID_ARG, err.c_str());
+ }
COMTHROW( object->get_ID(PutOut(mgaid)) );
}
More information about the gme-commit
mailing list