From 1fc44e4f9d871f77a28e40fa8f74be42c1024bac Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 8 Mar 2022 16:34:04 -0600 Subject: [PATCH] Clarify error message for meshes with same ID in same file Co-authored-by: Patrick Shriwise --- src/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index 78e2e8952..de29233fb 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -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);