Add file specific errors to file writing.