Преглед на файлове

Added error checking to GFF loader

Stephen Ficklin преди 9 години
родител
ревизия
9dee16a212
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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,