Added message type

Message is error, warning, other.