windows: update the error message when an error occurs while writing to the serial...