libsml icon indicating copy to clipboard operation
libsml copied to clipboard

Add ability to catch libsml error messages

Open andig opened this issue 9 years ago • 3 comments

...instead of writing them to STDERR

andig avatar Mar 18 '15 11:03 andig

You are right. A library should not write to strerr. It should return an error number and the application should decide what to do (write an error message, stop execution, nothing ...) BTW: If you like to suppress the error messages right now you can use sml_server /dev/ttyUSB0 2>/dev/null

hmueller01 avatar Jan 15 '18 15:01 hmueller01

realize that before https://github.com/volkszaehler/libsml/pull/12 it would even write them to stdout.

r00t- avatar Jan 19 '18 09:01 r00t-

made some implementation, please have a look at #93

r00t- avatar Dec 28 '20 03:12 r00t-