[ros-kernel] Re: Enhanced error messages

Martin Fuchs martin-fuchs at gmx.net
Mon Jan 5 21:06:34 CET 2004


> One other thing. Could we make this functionality you want to add a
> macro rather than a new exported function?
> 
> Thanks
> Steven

My idea was to extend FormatMessage() internally.
So no user program has to call (directly) this new exported functions.
It would would get the enhanced error messages automatically.
This change is no cause of compatibility problems, since no one
can expect the messages in a specific format anyways - it's already
internationalized and different from language to language.

However we could export the functions for future applications,
which may be ROS-aware, perhaps naming them
ROS_SetLastErrorWithInfo() and ROS_GetLastErrorInfo().

Regards

   Martin


More information about the Ros-kernel mailing list