Define RCUTILS_SET_ERROR_MSG

Define Documentation

RCUTILS_SET_ERROR_MSG(msg)

Set the error message, as well as append the current file and line number.

If an error message was previously set, and rcutils_reset_error() was not called afterwards, and this library was built with RCUTILS_REPORT_ERROR_HANDLING_ERRORS turned on, then the previously set error message will be printed to stderr. Error state storage is thread local and so all error related functions are also thread local.

Parameters:
  • msg[in] The error message to be set.