meaningful error message is displayed if custom template is broken when getting output