mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Clarify error message for meshes with same ID in same file
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
48f3321e3d
commit
1fc44e4f9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue