Duplicated code. Please use .updateErrorMessage() method here.