now display error and warning