Browse Source

Fixed issue #145

Stephen Ficklin 7 years ago
parent
commit
cdaacaeace
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tripal_chado/includes/TripalImporter/OBOImporter.inc

+ 2 - 1
tripal_chado/includes/TripalImporter/OBOImporter.inc

@@ -1076,7 +1076,7 @@ class OBOImporter extends TripalImporter {
           $options = array('return_record' => FALSE);
           $success = chado_insert_record('cvtermsynonym', $values, $options);
           if (!$success) {
-            throw new Exception("Failed to insert the synonym for term: $name ($def)");
+            throw new Exception("Failed to insert the synonym for term: $cvterm->name ($def)");
           }
         }
 
@@ -1145,6 +1145,7 @@ class OBOImporter extends TripalImporter {
 
       //remove comments from end of lines
       $line = preg_replace('/^(.*?)\!.*$/', '\1', $line);  // TODO: if the explamation is escaped
+      $type = '';
 
       // at the first stanza we're out of header
       if (preg_match('/^\s*\[/', $line)) {