Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Option: disable log output for riot-tmpl #2108
3.0.0 introduced this breaking change:
Change: template errors will be always output via console.error if the console api is available (breaking change)
While I applaud having this output while developing, I would like an option/global flag to disable this explicitly i.e. in production.
PS is it bad practice to simply do
It will trip over a lot of cases that previously were silently handled.
I am not sure, I mean in the end an error is an error! Riot will use the
referenced this issue
Nov 28, 2016
Oh, I had forgot that there's
We could easily do it by putting the code into
@aMarCruz @cognitom swallowing template errors it's a really bad idea unless you really know what you are doing. Considering that you could easily handle it outside of riot http://plnkr.co/edit/7D7QKAigH6GFHEATkOpk?p=preview and that 95% of userland don't know what they are doing I guess it's a good idea to keep it strict. However I guess that @cognitom solution could be an acceptable compromise