The judge also sent a warning.