-
-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Labels
readyWe've decided how to solve or implement itWe've decided how to solve or implement it
Milestone
Description
Currently in Kadira we get lots of exceptions that look like this:
[client] Exception in tempalte helper:
As there is no more detail they all get grouped together which can be painful to wade through.
One simple update we could make in Blaze is to pass the name of the helper function to _wrapCatchingException (in lookup.js) so
return Blaze._wrapCatchingExceptions(f, 'template helper').apply(self, args);
Would be instead something like
return Blaze._wrapCatchingExceptions(f, `template helper ${templateFunc.name}`).apply(self, args);
It would be even better if we passed the actual template name into wrapHelper and then we could report that too meaning a unique grouping by template name and helper in Kadira or whatever other error handling program someone is using.
I'm happy to make the PR if whoever monitors this agrees 😃
coagmano
Metadata
Metadata
Assignees
Labels
readyWe've decided how to solve or implement itWe've decided how to solve or implement it