Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change an assert to an exception raising point (to ease debugging)
[simgrid.git] / src / gras / Virtu / process.c
index 670269d..462c34e 100644 (file)
@@ -107,8 +107,8 @@ gras_procdata_init() {
     } CATCH(e) {
       xbt_ex_free(e);
     }
     } CATCH(e) {
       xbt_ex_free(e);
     }
-    xbt_assert1(!found,
-               "MayDay: two modules use '%s' as libdata name", fab.name);
+    if (found)
+      THROW1(unknown_error,0,"MayDay: two modules use '%s' as libdata name", fab.name);
     
     /* Add the data in place */
     xbt_dict_set(pd->libdata, fab.name, (fab.creator)(), fab.destructor);
     
     /* Add the data in place */
     xbt_dict_set(pd->libdata, fab.name, (fab.creator)(), fab.destructor);