Make iopvars_gen fail in case of error