Avoid duplicating the showError function so much.