浏览代码

More verbose error message when reopening out of core file

Samuel Thibault 7 年之前
父节点
当前提交
88f46dbc6b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 1 - 1
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -177,7 +177,7 @@ static void _starpu_unistd_init(struct starpu_unistd_global_obj *obj, int descri
 static int _starpu_unistd_reopen(struct starpu_unistd_global_obj *obj)
 {
 	int id = open(obj->path, obj->flags);
-	STARPU_ASSERT(id >= 0);
+	STARPU_ASSERT_MSG(id >= 0, "Reopening file %s failed: errno %d", obj->path, errno);
 	return id;
 }