properly display template exceptions