Is there a way to detect exceptions thrown in blaze template helpers?


#1

Hi

I’d like to know when one template helper fails in production or in my e2e tests.

It seems that by default templates just fail silently, loggin the error in the browser console and hiding the template.

Is there a way to hook onto some onError event, something similar to window.onerror ?

Have a nice day
Renan


#2

in the helper? you just handle it as you would in JavaScript generally

same topic