My point being, Your Mother, that the open failure could and indeed should, be better handled since if open() fails, the error log will get extended by the subsequent write failures.
A user level that continues to overstate my experience :-))
Heh. My point being, from a UI perspective, it’s not handled at all in your “correction.” Your code would give a generic server error and is not appropriate for production. :P