extract proper error description from log lines