Fixes #4210 - Improve logging of template errors