Helper function to report the children records
report_children(fail, has_children, table_name, id, id_key)
Arguments
- fail
logical, current fail status
- has_children
logical vector, whether the children records are present
- table_name
character, the name of the table
- id
character, the ID column
- id_key
named vector, the ID key
Value
logical, the updated fail status