Skip to content

Commit

Permalink
added error warning and assert when a name cannot be found in a NameM…
Browse files Browse the repository at this point in the history
…anager
  • Loading branch information
mxgrey committed Jun 23, 2015
1 parent 9245949 commit e9896b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dart/common/detail/NameManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,13 @@ T NameManager<T>::getObject(const std::string& _name) const
if (result != mMap.end())
return result->second;
else
{
dterr << "[NameManager::getObject] (" << mManagerName
<< ") Could not find an object with the name [" << _name << "]\n";
assert(false);

return nullptr;
}
}

//==============================================================================
Expand Down

0 comments on commit e9896b2

Please sign in to comment.