better error message when parsing field definitions fails