Add error templating.