Better error messages when saving a file fails - thx Andrew  :)