Added label printing to timing-related errors.

release/4.3a0
Vadim Indelman 2012-06-29 15:04:39 +00:00
parent c7ff913f64
commit 0a66326891
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ void toc_(size_t id) {
!= current->parent_.lock()->children_.end())
std::cout << "gtsam timing: Incorrect ID passed to toc, expected "
<< std::find(current->parent_.lock()->children_.begin(), current->parent_.lock()->children_.end(), current) - current->parent_.lock()->children_.begin()
<< ", got " << id << std::endl;
<< " \"" << current->label_ << "\", got " << id << std::endl;
else
std::cout << "gtsam timing: Incorrect ID passed to toc, id " << id << " does not exist" << std::endl;
timingRoot->print();