Fix an errorType check