Added a better error message for save error