colour coding error and warn