Skip to content

Commit

Permalink
doc/search: do not break on "ill-formed" docs
Browse files Browse the repository at this point in the history
We got ugly exceptions for non-obvious errors such as missing titles
  • Loading branch information
Thomas-Gelf committed Mar 13, 2015
1 parent 6bf8849 commit 697d4af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/doc/application/controllers/SearchController.php
Expand Up @@ -36,15 +36,15 @@ public function indexAction()
if (($path = $this->getModulePath($module)) !== null) {
try {
$parser = new DocParser($path);
$search = new DocSearchRenderer(
new DocSearchIterator(
$parser->getDocTree()->getIterator(),
new DocSearch($this->params->get('q'))
)
);
} catch (DocException $e) {
continue;
}
$search = new DocSearchRenderer(
new DocSearchIterator(
$parser->getDocTree()->getIterator(),
new DocSearch($this->params->get('q'))
)
);
$search
->setUrl('doc/module/chapter')
->setUrlParams(array('moduleName' => $module));
Expand Down

0 comments on commit 697d4af

Please sign in to comment.