adds error message on failed save