diff --git a/gtsam/nonlinear/LieValues-inl.h b/gtsam/nonlinear/LieValues-inl.h index cd67fa073..8a44d5488 100644 --- a/gtsam/nonlinear/LieValues-inl.h +++ b/gtsam/nonlinear/LieValues-inl.h @@ -61,7 +61,7 @@ namespace gtsam { template const typename J::Value& LieValues::at(const J& j) const { const_iterator it = values_.find(j); - if (it == values_.end()) throw std::invalid_argument("invalid j: " + (string)j); + if (it == values_.end()) throw std::invalid_argument("LieValues::at() invalid j: " + (string)j); else return it->second; } @@ -130,7 +130,7 @@ namespace gtsam { template void LieValues::erase(const J& j, size_t& dim) { iterator it = values_.find(j); - if (it == values_.end()) throw std::invalid_argument("invalid j: " + (string)j); + if (it == values_.end()) throw std::invalid_argument("LieValues::erase() invalid j: " + (string)j); dim = it->second.dim(); values_.erase(it); }