Fix iError not defined linting error

Ping #1495, #1827