picking up first error from logfile