Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
29 stars 12 forks source link

Leverage error “cause” for wrapping render errors. #170

Closed theengineear closed 9 months ago

theengineear commented 9 months ago

Because some template engines can throw immutable errors, it’s safer and better to use an “error cause” to chain the old error to our own versus trying to mutate the original.

Closes #128.

theengineear commented 9 months ago

FYI @klebba — super small change to leverage error “cause”. It’s a slightly safer way of wrapping errors.