Clarify error message for meshes with same ID in same file

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
Paul Romano 2022-03-08 16:34:04 -06:00 committed by GitHub
parent 48f3321e3d
commit 1fc44e4f9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2568,7 +2568,7 @@ void read_meshes(pugi::xml_node root)
int id = std::stoi(get_node_value(node, "id"));
if (contains(mesh_ids, id)) {
fatal_error(
"Two or more meshes use the same unique ID: " + std::to_string(id));
fmt::format("Two or more meshes use the same unique ID '{}' in the same input file", id));
}
mesh_ids.insert(id);