Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
catch logic exception
James Cole0a89af3c8391
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.phpindex 35c2e58840..178a94cc92 100644--- a/app/Support/Search/OperatorQuerySearch.php+++ b/app/Support/Search/OperatorQuerySearch.php@@ -54,6 +54,7 @@ use Gdbots\QueryParser\QueryParser;use Illuminate\Pagination\LengthAwarePaginator;use Illuminate\Support\Collection;use Log;+use LogicException;use TypeError;/**@@ -155,7 +156,7 @@ class OperatorQuerySearch implements SearchInterface$parser = new QueryParser();try {$query1 = $parser->parse($query);- } catch (TypeError $e) {+ } catch (TypeError|LogicException $e) {Log::error($e->getMessage());Log::error(sprintf('Could not parse search: "%s".', $query));throw new FireflyException('Invalid search value. See the logs.', 0, $e);