From 58fd4abe0e649d483b1ede627f5ae8633cfd0baa Mon Sep 17 00:00:00 2001 From: Josh Faust Date: Mon, 14 Jun 2010 22:49:16 +0000 Subject: [PATCH] add more detail to the TimeNotInitializedException exception --- core/roslib/include/ros/time.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/roslib/include/ros/time.h b/core/roslib/include/ros/time.h index 9bcab976..e7f4604b 100644 --- a/core/roslib/include/ros/time.h +++ b/core/roslib/include/ros/time.h @@ -55,7 +55,8 @@ class TimeNotInitializedException : public Exception { public: TimeNotInitializedException() - : Exception("Cannot use ros::Time::now() before the first NodeHandle has been created or ros::start() has been called") + : Exception("Cannot use ros::Time::now() before the first NodeHandle has been created or ros::start() has been called. " + "If this is a standalone app or test that just uses ros::Time and does not communicate over ROS, you may also call ros::Time::init()") {} };