color code errors and warnings