clear errror details on BufLeave