Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: catch exceptions thrown by template interpolation #43

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Nov 13, 2024

This is a first pass at catching exceptions generated by the interpolation process. It wraps each call to interpolate with a try/catch and individually reports an error via the logger.

I know that the exception message in this particular case (in unit test) is pretty useless, but it also seems bad to simply swallow the error with no extra context.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review November 13, 2024 00:36
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner November 13, 2024 00:36
@cwaldren-ld cwaldren-ld marked this pull request as draft November 13, 2024 00:39
@cwaldren-ld cwaldren-ld marked this pull request as ready for review November 15, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants