Add error message for duplicate field definitions.