Add line to set error condition on a partial write to the log file