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

Public GIT Repository
merge conflict resolved
[simgrid.git] / src / instr / instr_paje_trace.c
index c4a7cbed50f7eda5243045b01a3921bc40d2a040..b994510a875ec9d872db6c0ec446c29d9c7079be 100644 (file)
@@ -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);