diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php index be2df62dad..450646e046 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseController.php @@ -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);