Browse Source

improved exceptio message

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

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

@@ -1251,9 +1251,9 @@ class OBOImporter extends TripalImporter {
     $objterm['is_relationship'] = $object_is_relationship;
     $objterm['db_name'] = $default_db;
 
-    $objcvterm = tripal_insert_cvterm($objterm, array('update_existing' => TRUE));
+    $objcvterm = chado_insert_cvterm($objterm, array('update_existing' => TRUE));
     if (!$objcvterm) {
-      throw new Exception("Cannot add cvterm " . $objterm['name']);
+      throw new Exception("Cannot add cvterm '" . $objterm['name'] . "' (" . $objterm['id'] . ").");
     }
 
     // check to see if the cvterm_relationship already exists, if not add it