add more detail to the TimeNotInitializedException exception

This commit is contained in:
Josh Faust 2010-06-14 22:49:16 +00:00
parent b99d357cb0
commit 58fd4abe0e
1 changed files with 2 additions and 1 deletions

View File

@ -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()")
{}
};