Replace FUNCerr with ERR_raise_data