mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Don't report zero grep results as error
Test Plan: Grepped for non-existing string. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5776
This commit is contained in:
parent
1c507f14af
commit
f302751a23
1 changed files with 6 additions and 3 deletions
|
@ -209,9 +209,12 @@ final class DiffusionBrowseController extends DiffusionController {
|
|||
}
|
||||
|
||||
} catch (CommandException $ex) {
|
||||
return id(new AphrontErrorView())
|
||||
->setTitle(pht('Search Error'))
|
||||
->appendChild($ex->getStderr());
|
||||
$stderr = $ex->getStderr();
|
||||
if ($stderr != '') {
|
||||
return id(new AphrontErrorView())
|
||||
->setTitle(pht('Search Error'))
|
||||
->appendChild($stderr);
|
||||
}
|
||||
}
|
||||
|
||||
$results = array_slice($results, $page);
|
||||
|
|
Loading…
Reference in a new issue