Better template exception

When template parsing fails, add more debug information (what file) and reraise