`err` to `error` or `errorIndex`?