Adjust exception messages for template loading errors