fix error message so user will be notify if template procesing failed