Update spin error message to match function name (#323)

This commit is contained in:
dhood 2017-04-25 09:56:01 -07:00 committed by GitHub
parent 3e6a6d2781
commit 675ad04c76

View file

@ -26,7 +26,7 @@ void
SingleThreadedExecutor::spin()
{
if (spinning.exchange(true)) {
throw std::runtime_error("spin_some() called while already spinning");
throw std::runtime_error("spin() called while already spinning");
}
RCLCPP_SCOPE_EXIT(this->spinning.store(false); );
while (rclcpp::utilities::ok() && spinning.load()) {