Tweaked syntax of error reporting for failed templates