Skip to content

Commit

Permalink
[Twig Hooks] Fix not passing a previous exception to the HookRenderEx…
Browse files Browse the repository at this point in the history
…ception
  • Loading branch information
jakubtobiasz committed Apr 25, 2024
1 parent 8edacb7 commit 37d0052
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}
Expand Down

0 comments on commit 37d0052

Please sign in to comment.