Added label printing to timing-related errors.
parent
c7ff913f64
commit
0a66326891
|
@ -207,7 +207,7 @@ void toc_(size_t id) {
|
||||||
!= current->parent_.lock()->children_.end())
|
!= current->parent_.lock()->children_.end())
|
||||||
std::cout << "gtsam timing: Incorrect ID passed to toc, expected "
|
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()
|
<< 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
|
else
|
||||||
std::cout << "gtsam timing: Incorrect ID passed to toc, id " << id << " does not exist" << std::endl;
|
std::cout << "gtsam timing: Incorrect ID passed to toc, id " << id << " does not exist" << std::endl;
|
||||||
timingRoot->print();
|
timingRoot->print();
|
||||||
|
|
Loading…
Reference in New Issue