Issue error if default file can't be written