Correctly show error messages