output message for exception in debug mode

release/4.3a0
Varun Agrawal 2020-03-28 09:56:29 -04:00
parent cd809309f7
commit 02ff7ae276
1 changed files with 3 additions and 0 deletions

View File

@ -244,6 +244,9 @@ Values localToWorld(const Values& local, const Pose2& base,
world.insert(key, base.transformFrom(point));
} catch (const std::exception& e2) {
// if not Pose2 or Point2, do nothing
#ifndef NDEBUG
std::cerr << "Values[key] is neither Pose2 nor Point2, so skip" << std::endl;
#endif
}
}
}