output template errors on preview into the preview window - fixes #2