show error message when an error happens