Browse Source

more explicit assertion failure

Samuel Thibault 8 years ago
parent
commit
f7bc8021a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/disk.c

+ 1 - 1
src/core/disk.c

@@ -75,7 +75,7 @@ int starpu_disk_register(struct starpu_disk_ops *func, void *parameter, starpu_s
 	char name[16];
 	snprintf(name, sizeof(name), "DISK%d", n);
 	msg_host_t host = _starpu_simgrid_get_host_by_name(name);
-	STARPU_ASSERT(host);
+	STARPU_ASSERT_MSG(host, "Could not find disk %s in platform file", name);
 	_starpu_simgrid_memory_node_set_host(memory_node, host);
 #endif