added error flag to message.