Merge pull request #2068 from pshriwise/dagmc_msg

Provide error message for missing DAGMC model file
This commit is contained in:
Paul Romano 2022-05-16 08:41:48 -04:00 committed by GitHub
commit 7752afb554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,9 @@ DAGUniverse::DAGUniverse(pugi::xml_node node)
if (check_for_node(node, "filename")) {
filename_ = get_node_value(node, "filename");
if (!file_exists(filename_)) {
fatal_error(fmt::format("DAGMC file '{}' could not be found", filename_));
}
} else {
fatal_error("Must specify a file for the DAGMC universe");
}