Use the magic $_self instead of compiling in the current template name into the error template.