Add error message if the log file could not be opened.