瀏覽代碼

improved exceptio message

Stephen Ficklin 6 年之前
父節點
當前提交
19efaf5f57
共有 1 個文件被更改,包括 2 次插入2 次删除
  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