update to rcutils logging in commented code as well (#466)

This commit is contained in:
Mikael Arguedas 2018-04-27 15:31:08 -07:00 committed by GitHub
parent 1610fc3973
commit 66a7c62531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,9 +359,9 @@ public:
} catch (const std::exception &) { } catch (const std::exception &) {
// TODO(karsten1987): Windows CI doens't let me print the msg here // TODO(karsten1987): Windows CI doens't let me print the msg here
// the todo is to forward the exception to the on_error callback // the todo is to forward the exception to the on_error callback
// fprintf(stderr, "Caught exception in callback for transition %d\n", // RCUTILS_LOG_ERROR("Caught exception in callback for transition %d\n",
// it->first); // it->first)
// fprintf(stderr, "Original error msg: %s\n", e.what()); // RCUTILS_LOG_ERROR("Original error msg: %s\n", e.what())
// maybe directly go for error handling here // maybe directly go for error handling here
// and pass exception along with it // and pass exception along with it
cb_success = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_ERROR; cb_success = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_ERROR;