From 0a663268916f7326b0a03b84d1fb59449da1057d Mon Sep 17 00:00:00 2001 From: Vadim Indelman Date: Fri, 29 Jun 2012 15:04:39 +0000 Subject: [PATCH] Added label printing to timing-related errors. --- gtsam/base/timing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/base/timing.cpp b/gtsam/base/timing.cpp index c16138cef..162a1306f 100644 --- a/gtsam/base/timing.cpp +++ b/gtsam/base/timing.cpp @@ -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();