diff --git a/src/TwigHooks/src/Hookable/Renderer/HookableTemplateRenderer.php b/src/TwigHooks/src/Hookable/Renderer/HookableTemplateRenderer.php index 97a8ed5a..1aa17035 100644 --- a/src/TwigHooks/src/Hookable/Renderer/HookableTemplateRenderer.php +++ b/src/TwigHooks/src/Hookable/Renderer/HookableTemplateRenderer.php @@ -36,11 +36,11 @@ public function render(AbstractHookable $hookable, HookableMetadata $metadata): } catch (\Throwable $exception) { throw new HookRenderException( sprintf( - 'An error occurred during rendering the "%s" hook in the "%s" hookable. Original error: %s', + 'An error occurred during rendering the "%s" hook in the "%s" hookable', $hookable->name, $hookable->hookName, - $exception->getMessage(), ), + previous: $exception, ); } }