Show an error message when create or update fails