refactor error checking
refactor error checking

philiptzou/clincoded,ClinGen/clincoded,philiptzou/clincoded,ClinGen/clincoded,ClinGen/clincoded,philiptzou/clincoded,philiptzou/clincoded,philiptzou/clincoded,ClinGen/clincoded,ClinGen/clincoded