fix the log file name on error message