fixes #1905 : error messages are sent to sterr stream

__Scope:__ Error messages are sent to sterr stream instead of stdout/output stream. 
__Fixes:__ #1905