From 675ad04c7608ced37238db1ccf337fc9ca03a02b Mon Sep 17 00:00:00 2001 From: dhood Date: Tue, 25 Apr 2017 09:56:01 -0700 Subject: [PATCH] Update spin error message to match function name (#323) --- rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp b/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp index 744d5f0..a4bed37 100644 --- a/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp +++ b/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp @@ -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()) {