Skip to content

Commit

Permalink
Update src/simplnx/DataStructure/DataMap.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Young <[email protected]>
  • Loading branch information
imikejackson and nyoungbq committed May 24, 2024
1 parent 82491be commit 85d0308
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simplnx/DataStructure/DataMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ DataMap DataMap::deepCopy(const DataPath& parentCopyPath) const
const auto copy = dataObj->deepCopy(parentCopyPath.createChildPath(dataObj->getName()));
if(copy == nullptr)
{
throw std::runtime_error(fmt::format("A deep copy request for parent '{}' failed on child object '{}' ", parentCopyPath.toString(), dataObj->getName()));
throw std::runtime_error(
fmt::format("{}({}): Function {}: A deep copy request for parent '{}' failed on child object '{}'", __FILE__, __LINE__, "DataMap::DeepCopy", parentCopyPath.toString(), dataObj->getName()));
}
dataMap.m_Map[key] = copy;
}
Expand Down

0 comments on commit 85d0308

Please sign in to comment.