mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Livestatus\Query: use trigger_error in __toString
This commit is contained in:
parent
510e1e66d6
commit
4b5b5f4ae3
@ -12,6 +12,7 @@ use Icinga\Data\Filter\FilterExpression;
|
|||||||
use Icinga\Data\Filter\FilterOr;
|
use Icinga\Data\Filter\FilterOr;
|
||||||
use Icinga\Data\Filter\FilterAnd;
|
use Icinga\Data\Filter\FilterAnd;
|
||||||
use Icinga\Data\Filter\FilterNot;
|
use Icinga\Data\Filter\FilterNot;
|
||||||
|
use Exception;
|
||||||
|
|
||||||
class Query extends SimpleQuery
|
class Query extends SimpleQuery
|
||||||
{
|
{
|
||||||
@ -75,7 +76,11 @@ class Query extends SimpleQuery
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->toString();
|
try {
|
||||||
|
return $this->toString();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
trigger_error('Exception: ' . $e->getMessage(), E_USER_ERROR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user