OK, I moved the `global.error` check into `functionResolve`, and if any errors occur during IFTI, `errorFunc` will be returned.