diff --git a/application/Espo/Tools/Formula/Service.php b/application/Espo/Tools/Formula/Service.php index b53096dc18..b7362a3feb 100644 --- a/application/Espo/Tools/Formula/Service.php +++ b/application/Espo/Tools/Formula/Service.php @@ -92,7 +92,7 @@ class Service } catch (Error $e) { $output = $variables->__output ?? null; - $this->log->error("Formula sandbox run error.", ['exception' => $e->getPrevious()]); + $this->log->error("Formula sandbox run error.", ['exception' => $e]); return RunResult::createError($e, $output); }