显示导入中的错误信息
This commit is contained in:
parent
99ffd67607
commit
51756e0c72
|
@ -736,7 +736,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$r=$this->db->fetchRow($sql,array($iso->uuid));
|
||||
if ($r)
|
||||
{
|
||||
$trow->data=base64_encode(file_get_contents($this->view->config->geonetwork->url.'srv/cn/resources.get?access=public&id='.$r->gid.'&fname='.urlencode($iso->graph['filename'])));
|
||||
$trow->data=base64_encode(file_get_contents($this->view->config->geonetwork->url.'srv/cn/resources.get?access=public&id='.$r->gid.'&fname='.urlencode($iso->graph['filename'])));
|
||||
}
|
||||
$trow->filetype=$iso->graph['filetype'];
|
||||
$trow->filedesc=$iso->graph['filedesc'];
|
||||
|
@ -849,6 +849,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$iso->save("../data/import/$iso->uuid.xml");
|
||||
} catch (Exception $e) {
|
||||
//数据重复插入,此处忽略所有错误
|
||||
print $iso->uuid.' has error: '.$e->getMessage().'<br />';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue