mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
throw execption if creation/opening of index fails
This commit is contained in:
parent
41c08492ac
commit
25fc979a3a
|
@ -39,8 +39,12 @@ class SeedDMS_Lucene_Indexer {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
static function create($conf) { /* {{{ */
|
static function create($conf) { /* {{{ */
|
||||||
|
try {
|
||||||
$index = Zend_Search_Lucene::create($conf['indexdir']);
|
$index = Zend_Search_Lucene::create($conf['indexdir']);
|
||||||
return($index);
|
return($index);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user