IcingaObjectsHandler: send error message, not trace

This commit is contained in:
Thomas Gelf 2022-07-19 12:26:51 +02:00
parent 349cc33046
commit 2821b0721d
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ class IcingaObjectsHandler extends RequestHandler
try {
$this->streamJsonResult();
} catch (Exception $e) {
// NONO
$this->sendJsonError($e->getTraceAsString());
$this->sendJsonError($e);
}
}