Display error message while editing.