Remove unused function to show the set error without first setting the error text.