Sfoglia il codice sorgente

Added error checking to GFF loader

Stephen Ficklin 9 anni fa
parent
commit
9dee16a212
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tripal_feature/includes/tripal_feature.gff_loader.inc

+ 1 - 1
tripal_feature/includes/tripal_feature.gff_loader.inc

@@ -1215,7 +1215,7 @@ function tripal_feature_load_gff3_parents($feature, $cvterm, $parents,
     $relcvterm = chado_query($cvterm_sql, array(':cvname' => 'sequence', ':name' => $rel_type, ':synonym' => $rel_type))->fetchObject();
     if (!$relcvterm) {
       tripal_report_error("tripal_feature", TRIPAL_WARNING, "Cannot find the term, 'part_of', from the sequence ontology. This term is used for associating parent and children features. Please check that the ontology is fully imported.");
-      return '';
+      exit;
     }
     $values = array(
         'organism_id' => $organism_id,