- f = surf_fopen(filename, "r");
- if (f == NULL)
- xbt_die("Cannot open file '%s' (path=%s)", filename,
- xbt_str_join(surf_path, ":"));
+ FILE *f = surf_fopen(filename, "r");
+ xbt_assert(f != NULL,
+ "Cannot open file '%s' (path=%s)", filename, xbt_str_join(surf_path, ":"));