]> AND Public Git Repository - simgrid.git/blobdiff - src/instr/instr_paje_trace.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More trailing commas.
[simgrid.git] / src / instr / instr_paje_trace.c
index c4a7cbed50f7eda5243045b01a3921bc40d2a040..f4790d3ddfd71db6facaca013ebcb9b69a6ac276 100644 (file)
@@ -27,7 +27,7 @@ typedef enum {
   PAJE_PopState,
   PAJE_StartLink,
   PAJE_EndLink,
-  PAJE_NewEvent,
+  PAJE_NewEvent
 } e_event_type;
 
 typedef struct paje_event *paje_event_t;
@@ -155,7 +155,9 @@ void TRACE_paje_start(void)
 {
   char *filename = TRACE_get_filename();
   tracing_file = fopen(filename, "w");
-  xbt_assert (tracing_file != NULL, "Tracefile %s could not be opened for writing.", filename);
+  if (tracing_file == NULL){
+    THROWF (system_error, 1, "Tracefile %s could not be opened for writing.", filename);
+  }
 
   XBT_DEBUG("Filename %s is open for writing", filename);