- Implement error handling in ast_append_ha