Commit [7241c0986c] broke writing because error messages were checked, fix the check and fix writing