launchdarkly / dotnet-core

LaunchDarkly monorepo for .NET packages
Other
1 stars 0 forks source link

fix: catch exceptions thrown by template interpolation #43

Closed cwaldren-ld closed 1 week ago

cwaldren-ld commented 2 weeks ago

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.